Skip to content

Commit f911592

Browse files
cscheidclaude
andcommitted
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]>
1 parent 8cf6aaf commit f911592

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| a | b |
2+
|---|---|
3+
| `|` | oh no |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
| Test | Description |
2+
|------|-------------|
3+
| `` ` `` | backtick in code |
4+
| ``` | ``` | pipe in triple backtick code |
5+
| `a|b|c` | multiple pipes |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
| Column 1 | Column 2 | Column 3 |
2+
|----------|----------|----------|
3+
| `|` | normal text | `a|b` |
4+
| regular | `||` | more text |
5+
| `x | y` | text | `|>` |

0 commit comments

Comments
 (0)