diff options
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -500,11 +500,6 @@ fn write_event<'io, 'c, 'l, W: Write>( } Ok(ctx) } - InlineHtml(tag) => { - let style = ctx.style.current.fg(Colour::Green); - ctx.write_styled(&style, tag)?; - Ok(ctx) - } FootnoteReference(_) => panic!("mdcat does not support footnotes"), } } @@ -517,12 +512,6 @@ fn start_tag<'io, 'c, 'l, W: Write>( match tag { HtmlBlock => ctx.newline()?, Paragraph => ctx.start_inline_text()?, - Rule => { - ctx.start_inline_text()?; - let rule = "\u{2550}".repeat(ctx.output.size.width as usize); - let style = ctx.style.current.fg(Colour::Green); - ctx.write_styled(&style, rule)? - } Heading(level) => { // Before we start a new header, write all pending links to keep // them close to the text where they appeared in @@ -666,7 +655,6 @@ fn end_tag<'io, 'c, 'l, W: Write>( match tag { HtmlBlock => {} Paragraph => ctx.end_inline_text_with_margin()?, - Rule => ctx.end_inline_text_with_margin()?, Heading(_) => { ctx.drop_style(); ctx.end_inline_text_with_margin()? |