Skip to content

v3.1.2 - Fix code block comments rendered as headings

Latest

Choose a tag to compare

@hddevteam hddevteam released this 18 Apr 11:38

Bug Fixes

  • Fixed # comments inside fenced code blocks being rendered as <h1> headings: Python-style comments such as # ... existing code ... inside a python block were incorrectly converted to heading elements in the teleprompter view. The parser now protects fenced code block content with a placeholder before any other parsers run, so all syntax inside code blocks is preserved as literal text.
  • Removed stale dead-code path in the table parser that attempted to detect <pre> HTML tags鈥攖hese are now always placeholders before the table parser runs.
  • Renamed internal placeholders for clarity: fenced code blocks use MARKDOWN-BLOCK-CODE-N and table-cell inline code uses MARKDOWN-CELL-CODE-N.

Test Coverage

  • Added 4 new unit tests in the Code block comment protection suite covering all markdown syntax variants inside code blocks.

Full Changelog: https://github.com/hddevteam/cuemode/blob/main/CHANGELOG.md