Releases
v0.17.0
- Add opt-in language prefixes for inline code spans with
Markly::INLINE_CODE_INFO, expose code metadata throughNode#code_info, and provideNode#code_languageas a convenient language accessor. - Expose fenced code-block metadata through
Node#fenceandNode::Fence. - Add
Node#next_header, retainNode#next_headingas an alias, and correctly recognize header nodes. - Raise
NotImplementedErrorfrom the base renderer's unimplemented code-block callback instead of recursing indefinitely. - Remove unused legacy separator helpers from the Ruby renderer.
v0.16.0
- Update
cmark-gfmfrom upstream, including two table-rendering protections: avoid repeatedly scanning preceding cells, and limit the number of automatically completed cells to prevent denial of service. - Correct
end_linesource positions for single-line and multi-line HTML blocks. - Fix trailing newlines when rendering inline nodes.
- Add support for front matter (
CMARK_OPT_FRONT_MATTER): a---delimited block at the start of a document is captured as aCMARK_NODE_FRONT_MATTERnode. The raw content is available vianode.string_contentand an optional format hint (e.g."yaml","toml") vianode.fence_info. - Allow
:in HTML tag names to support XML namespace prefixes (e.g.<svg:circle>,<xhtml:div>).
v0.15.1
- Add agent context.
v0.15.0
- Introduced
Markly::Renderer::Headingsclass for extracting headings from markdown documents with automatic duplicate ID resolution. When rendering HTML withids: true, duplicate heading text now automatically gets unique IDs (deployment,deployment-2,deployment-3). TheHeadingsclass can also be used to extract headings for building navigation or table of contents.
v0.14.0
- Expose
Markly::Renderer::HTML.anchor_formethod to generate URL-safe anchors from headers.