Skip to content

🐛 fix(markdown): skip hidden code descendants - #1644

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/markdown-source-meaning
Nov 6, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/markdown-source-meaning

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Hidden HTML elements inside code blocks and spans could appear as visible text after Markdown export. In one fuzzed case, a hidden title leaked closing markup into a fenced code block and changed the rendered meaning.

Code text collection now uses the serializer's shared hidden-element classification, so these subtrees stay out of the exported Markdown.

@gaborbernat gaborbernat added the bug Something isn't working label Nov 6, 2026
@codspeed

codspeed Bot commented Nov 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 582 untouched benchmarks
⏩ 32 skipped benchmarks1


Comparing gaborbernat:fix/markdown-source-meaning (e95312f) with main (f5f3385)2

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (7282f12) during the generation of this report, so f5f3385 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@gaborbernat
gaborbernat merged commit 54a2590 into tox-dev:main Nov 6, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant