Skip to content

Bugfix on 2026.3.1

Latest

Choose a tag to compare

@vishnuharidas vishnuharidas released this 03 Mar 14:47
1f85b14

v2026.3.2

Bug fix: Inline markdown inside links was not rendered (#7).

Bug fixes

  • Link renderer not rendering inner tokens (#7) — The custom marked link renderer was using the raw text property instead of rendering inner tokens via this.parser.parseInline(tokens). This caused any inline markdown inside links — images, bold, italic, code, strikethrough, and inline HTML — to appear as raw markdown text instead of rendered HTML.
    • Example: [![Alt](/img.svg)](/link) produced <a>"![Alt](/img.svg)"</a> instead of <a><img src="/img.svg" alt="Alt"></a>
    • Affected all inline formatting inside links, not just images

Tests

  • 9 new test cases for inline markdown inside links (70 total, up from 61):
    • Bold, italic, inline code, and strikethrough inside links
    • Image wrapped in link (with dimension parsing from title)
    • External image inside internal link
    • Mixed formatting (**bold** and *italic*) in a single link
    • Formatted text inside external links (verifies SVG icon placement)
    • Inline HTML (<sup>) inside links

Breaking changes

None.

Requirements: Node.js >= 18