fixup! 3b4b2e0259b2e84c8199c6f416e2c4f8d466e431

This commit is contained in:
Noah Hellman 2022-12-04 17:56:49 +01:00
commit 5755616870
2 changed files with 4 additions and 4 deletions

View file

@ -77,8 +77,8 @@ impl<'s, I: Iterator<Item = Event<'s>>, W: std::fmt::Write> Writer<I, W> {
Container::TableCell => self.out.write_str("<td>")?,
Container::DescriptionTerm => self.out.write_str("<dt>")?,
Container::RawBlock { .. } => todo!(),
Container::CodeBlock { language } => {
if let Some(l) = language {
Container::CodeBlock { lang } => {
if let Some(l) = lang {
write!(self.out, r#"<pre><code class="language-{}">"#, l)?;
} else {
self.out.write_str("<pre><code>")?;