Skip to content

Commit e51f325

Browse files
Handle html in markdown as well
1 parent 6a2190c commit e51f325

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ pub fn render(w: &mut fmt::Formatter,
422422
Event::Start(Tag::Strong) => {
423423
strong(parser, buffer, toc_builder, shorter);
424424
}
425+
Event::Html(h) | Event::InlineHtml(h) => {
426+
buffer.push_str(&*h);
427+
}
425428
_ => {}
426429
}
427430
shorter.is_fancy()

0 commit comments

Comments
 (0)