Skip to content

Commit

Permalink
Fix rendering inside docblock short
Browse files Browse the repository at this point in the history
  • Loading branch information
johncf committed Dec 16, 2016
1 parent 7f0d4c3 commit 4945674
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,12 @@ pub fn render(w: &mut fmt::Formatter, md: &str, _: bool) -> fmt::Result {
});
try!(write!(w, "{}", out));
}
HmToken::EndTag{name: Cow::Borrowed("pre")} if rust_block => {
HmToken::EndTag { name: Cow::Borrowed("pre") } if rust_block => {
rust_block = false;
}
HmToken::EndTag { name: Cow::Borrowed("p") } => {
try!(write!(w, "{}\n\n", hm_tok)); // hack to make render::shorter() work
}
_ => try!(write!(w, "{}", hm_tok)),
}
}
Expand Down

0 comments on commit 4945674

Please sign in to comment.