Skip to content

Commit 9ef5ce0

Browse files
committed
trim inline code contents
1 parent 5c19014 commit 9ef5ce0

File tree

2 files changed

+6
-1
lines changed
  • crates/quarto-markdown-pandoc

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub fn process_code_span<T: Write>(
9191
.unwrap();
9292
}
9393
let text = match child {
94-
PandocNativeIntermediate::IntermediateBaseText(text, _) => text,
94+
PandocNativeIntermediate::IntermediateBaseText(text, _) => text.trim().to_string(),
9595
_ => {
9696
writeln!(
9797
buf,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
`hi `
2+
3+
` hi`
4+
5+
` hi `

0 commit comments

Comments
 (0)