fixup! 3b4b2e0259b2e84c8199c6f416e2c4f8d466e431
This commit is contained in:
parent
5e3d0e9666
commit
5755616870
2 changed files with 4 additions and 4 deletions
|
|
@ -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>")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue