Treat html as text in markdown parsing to disallow html in docs

This commit is contained in:
Yuki Omoto 2023-03-25 21:17:53 +09:00
parent 41d7ade5a3
commit e8adfa5b71
No known key found for this signature in database
GPG key ID: 9A7D6C91D5219717

View file

@ -884,6 +884,9 @@ fn markdown_to_html(
}
}
}
Event::Html(html) => {
docs_parser.push(Event::Text(html));
}
e => {
docs_parser.push(e);
}