Skip to content

Commit 86661fe

Browse files
authored
Merge pull request #686 from kivikakk/push-okotktkkkvzq
remove space before fenced codeblock info string.
2 parents bca6968 + fbe823b commit 86661fe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/cm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ impl<'a, 'o, 'c, 'w> CommonMarkFormatter<'a, 'o, 'c, 'w> {
694694
write!(self, "{}", fence_byte as char)?;
695695
}
696696
if !info.is_empty() {
697-
write!(self, " ")?;
698697
self.write_str(&ncb.info)?;
699698
}
700699
self.cr();

src/tests/commonmark.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn commonmark_renders_single_list_item() {
5858

5959
#[test_case("$$x^2$$ and $1 + 2$ and $`y^2`$", "$$x^2$$ and $1 + 2$ and $`y^2`$\n")]
6060
#[test_case("$$\nx^2\n$$", "$$\nx^2\n$$\n")]
61-
#[test_case("```math\nx^2\n```", "``` math\nx^2\n```\n")]
61+
#[test_case("```math\nx^2\n```", "```math\nx^2\n```\n")]
6262
fn commonmark_math(markdown: &str, cm: &str) {
6363
let mut options = Options::default();
6464
options.extension.math_dollars = true;

0 commit comments

Comments
 (0)