diff options
| author | Fuwn <[email protected]> | 2022-05-12 23:11:13 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-12 23:11:13 +0000 |
| commit | 01547eed0ea47230df00435d2e0bbd322444e57d (patch) | |
| tree | 20701d0218838d699490be197a5be90fb1ab80e7 /src/convert | |
| parent | fix(ast): take rest of iterator as text for link (diff) | |
| download | germ-01547eed0ea47230df00435d2e0bbd322444e57d.tar.xz germ-01547eed0ea47230df00435d2e0bbd322444e57d.zip | |
fix(markdown): proper whitespace placement
Diffstat (limited to 'src/convert')
| -rw-r--r-- | src/convert/markdown.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/convert/markdown.rs b/src/convert/markdown.rs index e9855a2..b07d5f1 100644 --- a/src/convert/markdown.rs +++ b/src/convert/markdown.rs @@ -64,12 +64,12 @@ pub fn convert(source: Vec<Node>) -> String { text, } => { markdown.push_str(&format!( - "```{}\n{}\n```", + "```{}\n{}```", alt_text.unwrap_or("".to_string()), text )); } - Node::Whitespace => markdown.push('\n'), + Node::Whitespace => markdown.push_str("\n\n"), } } |