Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): enable all rendering options for lint messages (#1920)
Elijah Pottere7f31294ba61
diff --git a/harper-core/src/render_markdown.rs b/harper-core/src/render_markdown.rsindex 6168f7666..70952c22b 100644--- a/harper-core/src/render_markdown.rs+++ b/harper-core/src/render_markdown.rs@@ -1,10 +1,10 @@use ammonia::clean;-use pulldown_cmark::{Parser, html};+use pulldown_cmark::{Options, Parser, html};/// The standard Markdown rendering function for the crate./// Do not call `pulldown_cmark` directly. Use this.pub fn render_markdown(markdown: &str) -> String {- let parser = Parser::new(markdown);+ let parser = Parser::new_ext(markdown, Options::all());let mut html = String::new();html::push_html(&mut html, parser);clean(&html)