We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9570b commit d7af6d9Copy full SHA for d7af6d9
src/utils/mod.rs
@@ -228,7 +228,14 @@ impl EventQuoteConverter {
228
fn clean_codeblock_headers(event: Event<'_>) -> Event<'_> {
229
match event {
230
Event::Start(Tag::CodeBlock(CodeBlockKind::Fenced(ref info))) => {
231
- let info: String = info.chars().filter(|ch| !ch.is_whitespace()).collect();
+ let info: String = info
232
+ .chars()
233
+ .map(|x| match x {
234
+ ' ' => ',',
235
+ _ => x,
236
+ })
237
+ .filter(|ch| !ch.is_whitespace())
238
+ .collect();
239
240
Event::Start(Tag::CodeBlock(CodeBlockKind::Fenced(CowStr::from(info))))
241
}
0 commit comments