summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-10-08 20:47:22 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-10-08 20:47:22 +0200
commit6e4a4a74b15e77ccf46784df89f227bbd0869284 (patch)
tree127ad61887aaa30d882c316199c870ac2aa36286
parent35f705d9043ba9e46f71d39d83498ee294228784 (diff)
Variant Rule was removed in pulldown-cmark 0.6update-pulldown-cmark
-rw-r--r--src/lib.rs12
1 files changed, 0 insertions, 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()?