fix: ignore keyword on html export

This commit is contained in:
PoiScript 2024-05-07 11:02:34 +08:00
parent caa7c0aacd
commit df0d5baec9
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E

View file

@ -326,6 +326,9 @@ impl Traverser for HtmlExport {
let _ = write!(&mut self.output, "{}", &latex.syntax);
}
// ignores keyword
Event::Enter(Container::Keyword(_)) => ctx.skip(),
Event::Entity(entity) => self.output += entity.html(),
_ => {}