fn convert_fenced_codeblocks<'a, I>(parser: I) -> Vec<Event<'a>>
where
    I: Iterator<Item = Event<'a>>,
{
    parser
        .map(|e| match &e {
            Event::Start(Tag::CodeBlock(CodeBlockKind::Fenced(_))) => Event::Html("<pre>".into()),
            Event::End(Tag::CodeBlock(CodeBlockKind::Fenced(_))) => Event::Html("</pre>".into()),
            _ => e,
        })
        .collect()
}
/// convert fenced code blocks to pre block
///
/// pulldown-cmark converts code blocks to "pre > code" blocks
/// but mathjax is disabled on <code> blocks for yukicoder
/// indented code blocks are unchanged
convert fenced code blocks to pre block
pulldown-cmark converts code blocks to "pre > code" blocks
but mathjax is disabled on  blocks for yukicoder
indented code blocks are unchanged
convert fenced code blocks to pre block pulldown - cmark converts code blocks to " pre > code " blocks but mathjax is disabled on blocks for yukicoder indented code blocks are unchanged
fn convert_fenced_codeblocks<'a, I>(parser: I) -> Vec<Event<'a>>
where
    I: Iterator<Item = Event<'a>>,
{
    parser
        .map(|e| match &e {
            Event::Start(Tag::CodeBlock(CodeBlockKind::Fenced(_))) => Event::Html("<pre>".into()),
            Event::End(Tag::CodeBlock(CodeBlockKind::Fenced(_))) => Event::Html("</pre>".into()),
            _ => e,
        })
        .collect()
}
fn convert_fenced_codeblocks < ' a , I > ( parser : I ) -> Vec < Event < ' a > > where I : Iterator < Item = Event < ' a > > , { parser . map ( | e | match & e { Event :: Start ( Tag :: CodeBlock ( CodeBlockKind :: Fenced ( _ ) ) ) => Event :: Html ( " " . into ( ) ) , Event :: End ( Tag :: CodeBlock ( CodeBlockKind :: Fenced ( _ ) ) ) => Event :: Html ( " " . into ( ) ) , _ => e , } ) . collect ( ) }
convert fenced code blocks to pre block
pulldown-cmark converts code blocks to "pre > code" blocks
but mathjax is disabled on <code> blocks for yukicoder
indented code blocks are unchanged
convert fenced code blocks to pre block pulldown - cmark converts code blocks to " pre > code " blocks but mathjax is disabled on <code > blocks for yukicoder indented code blocks are unchanged
parser
I