Skip to content

Commit e336268

Browse files
committed
fix pipe_table parse
1 parent 02863f6 commit e336268

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

crates/quarto-markdown-pandoc/src/pandoc/treesitter_utils/pipe_table.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ pub fn process_pipe_table(
152152
let mut colspec: Vec<ColSpec> = Vec::new();
153153
let mut rows: Vec<Row> = Vec::new();
154154
for (node, child) in children {
155+
if node == "block_continuation" {
156+
continue; // skip block continuation nodes
157+
}
155158
if node == "pipe_table_header" {
156159
if let PandocNativeIntermediate::IntermediateRow(row) = child {
157160
header = Some(row);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
::: {#fig-table .column-margin}
2+
3+
| A | B |
4+
|---|---|
5+
| C | D |
6+
7+
A table treated like a figure
8+
9+
:::

0 commit comments

Comments
 (0)