From 6e4a4a74b15e77ccf46784df89f227bbd0869284 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 8 Oct 2019 20:47:22 +0200 Subject: Variant Rule was removed in pulldown-cmark 0.6 --- src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2be09cb..d13e65f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()? -- cgit v1.2.3