Skip to content

Commit fedd1ae

Browse files
authored
Bugfix/rawinline write (#38)
* fix md escaping issue with >, #, etc * write rawinline correctly
1 parent e05b7dc commit fedd1ae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ fn write_rawinline(
989989
if raw.format == "markdown" {
990990
write!(buf, "{}", raw.text)
991991
} else {
992-
// For other formats, use raw span notation
993-
write!(buf, "`{}`{{{}}}", raw.text, raw.format)
992+
// For other formats, use raw span notation with = prefix
993+
write!(buf, "`{}`{{={}}}", raw.text, raw.format)
994994
}
995995
}
996996
fn write_note(note: &crate::pandoc::Note, buf: &mut dyn std::io::Write) -> std::io::Result<()> {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<sub>hello</sub>

0 commit comments

Comments
 (0)