You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
removed implicit "this"
This commit is contained in:
@ -68,10 +68,10 @@ export function htmlSerializeIfNeeded(model: EditorModel, {forceHTML = false} =
|
|||||||
{ _useHtmlParser2: true, decodeEntities: false })
|
{ _useHtmlParser2: true, decodeEntities: false })
|
||||||
|
|
||||||
// add fallback output for latex math, which should not be interpreted as markdown
|
// add fallback output for latex math, which should not be interpreted as markdown
|
||||||
phtml('div, span').each(function() {
|
phtml('div, span').each(function(i, e) {
|
||||||
const tex = phtml(this).attr('data-mx-maths')
|
const tex = phtml(e).attr('data-mx-maths')
|
||||||
if (tex) {
|
if (tex) {
|
||||||
phtml(this).html(`<code>${tex}</code>`)
|
phtml(e).html(`<code>${tex}</code>`)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return phtml.html();
|
return phtml.html();
|
||||||
|
Reference in New Issue
Block a user