fixup! 1f90bc1f72e8c6ed85c6ebcbf6bef9a319c7bee3
This commit is contained in:
		
					parent
					
						
							
								60372cda33
							
						
					
				
			
			
				commit
				
					
						21099a301f
					
				
			
		
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -77,7 +77,13 @@ impl<'s, I: Iterator<Item = Event<'s>>, W: std::fmt::Write> Writer<I, W> {
 | 
				
			||||||
                        Container::TableCell => self.out.write_str("<td>")?,
 | 
					                        Container::TableCell => self.out.write_str("<td>")?,
 | 
				
			||||||
                        Container::DescriptionTerm => self.out.write_str("<dt>")?,
 | 
					                        Container::DescriptionTerm => self.out.write_str("<dt>")?,
 | 
				
			||||||
                        Container::RawBlock { .. } => todo!(),
 | 
					                        Container::RawBlock { .. } => todo!(),
 | 
				
			||||||
                        Container::CodeBlock { .. } => todo!(),
 | 
					                        Container::CodeBlock { language } => {
 | 
				
			||||||
 | 
					                            if let Some(l) = language {
 | 
				
			||||||
 | 
					                                write!(self.out, r#"<pre><code class="language-{}">"#, l)?;
 | 
				
			||||||
 | 
					                            } else {
 | 
				
			||||||
 | 
					                                self.out.write_str("<pre><code>")?;
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
                        Container::Subscript => self.out.write_str("<sub>")?,
 | 
					                        Container::Subscript => self.out.write_str("<sub>")?,
 | 
				
			||||||
                        Container::Superscript => self.out.write_str("<sup>")?,
 | 
					                        Container::Superscript => self.out.write_str("<sup>")?,
 | 
				
			||||||
                        Container::Insert => self.out.write_str("<ins>")?,
 | 
					                        Container::Insert => self.out.write_str("<ins>")?,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue