Skip to content

Commit 93c80bf

Browse files
committed
Fix rendering inside docblock-short
1 parent acc5a5f commit 93c80bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/html/markdown.rs

+3
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ pub fn render(w: &mut fmt::Formatter, md: &str, _: bool) -> fmt::Result {
203203
HmToken::EndTag { name: Cow::Borrowed("pre") } if rust_block => {
204204
rust_block = false;
205205
}
206+
HmToken::EndTag { name: Cow::Borrowed("p") } => {
207+
try!(write!(w, "{}\n\n", hm_tok)); // hack to make render::shorter() work
208+
}
206209
_ => try!(write!(w, "{}", hm_tok)),
207210
}
208211
}

0 commit comments

Comments
 (0)