You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix pipe table parsing with code spans containing pipes (#29)
Added code span recognition to pipe table cell parsing. The block grammar
now properly handles backtick code spans like `|` within table cells by
repeating the inline grammar's code span parsing logic in the block context.
Changes:
- Added CODE_SPAN_START and CODE_SPAN_CLOSE external tokens to block grammar
- Implemented parse_code_span() in block scanner with lookahead for matching delimiters
- Added _pipe_table_code_span rule to parse code spans within table cells
- Updated scanner state serialization to track code span delimiter length
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Add tests for pipe tables with code spans containing pipes (issue #29)
These tests verify that the parser correctly handles code spans containing
pipe characters within pipe tables. The fix in the block parser now properly
parses code spans to avoid treating pipes inside backticks as table
delimiters.
Test cases cover:
- Simple code span with single pipe
- Multiple code spans with pipes in different cells
- Mixed backtick delimiters (double and triple backticks)
All tests pass and match Pandoc's output.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Add support to (@) lists (#6)
---------
Co-authored-by: Claude <[email protected]>
0 commit comments