fix: unclosed headings in html

This commit is contained in:
DarkCat09 2025-02-07 21:09:34 +04:00
parent 91ed65439c
commit 88ddd4608e
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -217,7 +217,7 @@ fn render_markdown<'md>(src: &'md str, mut p: ParserVars<'md>) -> std::io::Resul
p.links.clear();
}
}
Heading(level) => p.html.write_fmt(format_args!("<{}>", level))?,
Heading(level) => p.html.write_fmt(format_args!("</{}>", level))?,
BlockQuote(_) => p.html.write_all(b"</blockquote>")?,
CodeBlock => {
p.html.write_all(b"</code></pre>")?;