Disable definition lists in Markdown (#17648)
This PR disables definition list support in `pulldown_cmark`, as it is has been causing a number of issues. I opened an issue upstream with the panic we were seeing: https://github.com/pulldown-cmark/pulldown-cmark/issues/957. Release Notes: - N/A
This commit is contained in:
parent
93b3520c11
commit
a078cb104c
4 changed files with 12 additions and 3 deletions
|
@ -195,7 +195,9 @@ pub fn render_markdown_mut(
|
|||
let mut current_language = None;
|
||||
let mut list_stack = Vec::new();
|
||||
|
||||
let options = Options::all();
|
||||
let mut options = Options::all();
|
||||
options.remove(pulldown_cmark::Options::ENABLE_DEFINITION_LIST);
|
||||
|
||||
for (event, source_range) in Parser::new_ext(block, options).into_offset_iter() {
|
||||
let prev_len = text.len();
|
||||
match event {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue