1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-13 23:41:50 +03:00

Revert "send fallback in pre tags, not code" (code looks better)

This reverts commit e4448ae1ad.
This commit is contained in:
Aleks Kissinger
2020-09-20 17:02:27 +01:00
parent e4448ae1ad
commit 7e6d7053e0

View File

@ -53,9 +53,9 @@ export function htmlSerializeIfNeeded(model: EditorModel, {forceHTML = false} =
md = md.replace(reg, function(match, p1) {
const p1e = AllHtmlEntities.encode(p1);
if (d.display == true) {
return `<div data-mx-maths="${p1e}"><pre>${p1e}</pre></div>`;
return `<div data-mx-maths="${p1e}"><code>${p1e}</code></div>`;
} else {
return `<span data-mx-maths="${p1e}"><pre>${p1e}</pre></span>`;
return `<span data-mx-maths="${p1e}"><code>${p1e}</code></span>`;
}
});
});