forked from Mirrors/gomuks
hicli/html: fix non-math divs
This commit is contained in:
parent
214d4fde53
commit
8318cbdf17
1 changed files with 2 additions and 0 deletions
|
@ -548,6 +548,8 @@ Loop:
|
|||
built.WriteString(`<hicli-math displaymode="block"`)
|
||||
writeAttribute(&built, "latex", math)
|
||||
token.DataAtom = atom.Math
|
||||
} else {
|
||||
built.WriteString("<div")
|
||||
}
|
||||
case atom.Span, atom.Font:
|
||||
math, ok := getAttribute(token.Attr, "data-mx-maths")
|
||||
|
|
Loading…
Add table
Reference in a new issue