mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
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"`)
|
built.WriteString(`<hicli-math displaymode="block"`)
|
||||||
writeAttribute(&built, "latex", math)
|
writeAttribute(&built, "latex", math)
|
||||||
token.DataAtom = atom.Math
|
token.DataAtom = atom.Math
|
||||||
|
} else {
|
||||||
|
built.WriteString("<div")
|
||||||
}
|
}
|
||||||
case atom.Span, atom.Font:
|
case atom.Span, atom.Font:
|
||||||
math, ok := getAttribute(token.Attr, "data-mx-maths")
|
math, ok := getAttribute(token.Attr, "data-mx-maths")
|
||||||
|
|
Loading…
Add table
Reference in a new issue