Skip to content

fix(mdxish): stop lone leading dash from becoming list in magic block cells#1496

Open
maximilianfalco wants to merge 1 commit into
nextfrom
falco/rm-16239-lone-gets-rendered-as-bullet-point-in-table-magic-block-cell
Open

fix(mdxish): stop lone leading dash from becoming list in magic block cells#1496
maximilianfalco wants to merge 1 commit into
nextfrom
falco/rm-16239-lone-gets-rendered-as-bullet-point-in-table-magic-block-cell

Conversation

@maximilianfalco
Copy link
Copy Markdown
Contributor

@maximilianfalco maximilianfalco commented May 29, 2026

🎫 Resolve RM-16239

🎯 What does this PR do?

Magic block table cells (e.g. [block:parameters]) that contained a lone leading -, *, or + followed by a space were being parsed by the cell content parser as a bullet list, producing an empty <ul><li> instead of the literal text the author wrote.

The fix escapes leading list markers in parseTableCell before handing the cell text to the content parser, so the markers render as plain text while emphasis (*foo*, where the marker hugs the text with no trailing space) still parses correctly.

🧪 QA tips

[block:parameters]
{
  "data": {
    "h-0": "-",
    "h-1": "-",
    "0-0": "- fqefeq",
    "0-1": "- hello"
  },
  "cols": 2,
  "rows": 1
}
[/block]

the cells containing - only should be rendered as plain text instead of an empty list node

📸 Screenshot or Loom

Screenshot 2026-05-29 at 17 00 06

@maximilianfalco maximilianfalco requested review from eaglethrost, jamestclark, kevinports and rafegoldberg and removed request for rafegoldberg May 29, 2026 06:57
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