Skip to content

Commit 64aed65

Browse files
committed
clarify non-pandoc behavior, create additional tests to make distinction precise
1 parent 4d7d33e commit 64aed65

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

crates/quarto-markdown-pandoc/src/writers/qmd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,8 @@ fn write_soft_break(
679679
_: &crate::pandoc::SoftBreak,
680680
buf: &mut dyn std::io::Write,
681681
) -> std::io::Result<()> {
682+
// Pandoc's writer for markdown outputs a space for soft breaks
683+
// We choose to deviate from Pandoc for roundtripping purposes
682684
writeln!(buf)
683685
}
684686

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
a
2+
b
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Nested Blockquote Test
22

33
> Outer quote
4+
>
45
> > Nested quote
6+
> >
57
> > > Deeply nested quote
8+
> >
69
> > Back to nested
10+
>
711
> Back to outer
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Test
2+
3+
> Simple paragraph
4+
> Another line

0 commit comments

Comments
 (0)