summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-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()?