mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 01:35:54 +03:00
removed implicit "this"
This commit is contained in:
parent
173d798865
commit
06b20fad95
1 changed files with 3 additions and 3 deletions
|
@ -68,10 +68,10 @@ export function htmlSerializeIfNeeded(model: EditorModel, {forceHTML = false} =
|
|||
{ _useHtmlParser2: true, decodeEntities: false })
|
||||
|
||||
// add fallback output for latex math, which should not be interpreted as markdown
|
||||
phtml('div, span').each(function() {
|
||||
const tex = phtml(this).attr('data-mx-maths')
|
||||
phtml('div, span').each(function(i, e) {
|
||||
const tex = phtml(e).attr('data-mx-maths')
|
||||
if (tex) {
|
||||
phtml(this).html(`<code>${tex}</code>`)
|
||||
phtml(e).html(`<code>${tex}</code>`)
|
||||
}
|
||||
});
|
||||
return phtml.html();
|
||||
|
|
Loading…
Reference in a new issue