Skip to content

Commit 32497a1

Browse files
committed
Fix rendering inside docblock-short
1 parent c2d4bc3 commit 32497a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/html/markdown.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,12 @@ pub fn render(w: &mut fmt::Formatter, md: &str, _: bool) -> fmt::Result {
200200
});
201201
try!(write!(w, "{}", out));
202202
}
203-
HmToken::EndTag{name: Cow::Borrowed("pre")} if rust_block => {
203+
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)