Skip to content

Commit 357b5fd

Browse files
committed
fix(parser): restrict block types in default table cells to match asciidoctor
Default table cells now treat list markers, delimited blocks, toc macros, and page breaks as literal text instead of parsing them as blocks. Only cells with the 'a' (AsciiDoc) style get full block parsing. This fixes the mismatch where `| * item` was parsed as a list instead of literal text "* item".
1 parent 9f45cfc commit 357b5fd

File tree

6 files changed

+69
-495
lines changed

6 files changed

+69
-495
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6666
the parser based on each passthrough's own substitution settings. ([#291])
6767
- Verbatim blocks (listing/literal) now correctly skip typography replacements by default,
6868
matching asciidoctor behavior. Previously, smart quotes were incorrectly applied.
69+
- HTML5 compliance: removed self-closing syntax (`<col />``<col>`, `<img />``<img>`)
70+
and deprecated `frameborder` attribute from iframes.
6971

7072
### Changed
7173

@@ -146,6 +148,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
146148
- Paragraphs no longer incorrectly split when a line starts with inline passthrough
147149
syntax like `+>+`. The list continuation lookahead now only matches actual
148150
continuation markers (standalone `+` followed by whitespace/EOL/EOF).
151+
- Default table cells now treat list markers, delimited blocks, toc macros, and page
152+
breaks as literal text instead of parsing them as blocks. Only cells with the `a`
153+
(AsciiDoc) style get full block parsing, matching asciidoctor behavior.
149154

150155
### Changed
151156

0 commit comments

Comments
 (0)