Skip to content

fix(markdown): [[Target|label]] in a list item no longer becomes a table row - #214

Merged
ionos-landgraf-vin merged 1 commit into
mainfrom
fix/wikilink-pipe-in-list
Oct 30, 2026
Merged

ionos-landgraf-vin merged 1 commit into
mainfrom
fix/wikilink-pipe-in-list

Conversation

@ionos-landgraf-vin

Copy link
Copy Markdown
Collaborator

Summary

  • Kramdown reads every line containing an unescaped | as a table row, so a list item like - Related: [[A/B|a]], [[C/D|d]] was cut into table cells, and WikiLinks then matched [[...]] across </td><td>, rendering broken links.
  • Markdown.document now escapes the | inside [[...]] before parsing. Fenced code and inline code are left as written (they would show the backslash). Wiki links in real table cells still work.

Test plan

  • New tests in test/markdown_test.rb: list item, table cell, code span / fenced block
  • bundle exec rake (tests, steep, rubocop)

🤖 Generated with Claude Code

…ble row

Kramdown reads every line with an unescaped pipe as a table row, so
"- Related: [[A/B|a]], [[C/D|d]]" was cut into cells and WikiLinks then
matched across them. The pipe inside a wiki link is escaped before
parsing, code is left as written.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ionos-landgraf-vin
ionos-landgraf-vin merged commit f98443b into main Oct 30, 2026
8 checks passed
@ionos-landgraf-vin
ionos-landgraf-vin deleted the fix/wikilink-pipe-in-list branch October 30, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant