parent
62b89d0c72
commit
10c7aa0a6a
|
@ -239,7 +239,6 @@ pub fn markdown_to_html(content: &str, context: &RenderContext) -> Result<Render
|
||||||
if let Some(e) = error {
|
if let Some(e) = error {
|
||||||
return Err(e)
|
return Err(e)
|
||||||
} else {
|
} else {
|
||||||
html = html.replace("<p></p>", "").replace("</p></p>", "</p>");
|
|
||||||
Ok(Rendered {
|
Ok(Rendered {
|
||||||
summary_len: if has_summary { html.find(CONTINUE_READING) } else { None },
|
summary_len: if has_summary { html.find(CONTINUE_READING) } else { None },
|
||||||
body: html,
|
body: html,
|
||||||
|
|
Loading…
Reference in a new issue