You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
send fallback in pre tags, not code
This commit is contained in:
@ -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}"><code>${p1e}</code></div>`;
|
||||
return `<div data-mx-maths="${p1e}"><pre>${p1e}</pre></div>`;
|
||||
} else {
|
||||
return `<span data-mx-maths="${p1e}"><code>${p1e}</code></span>`;
|
||||
return `<span data-mx-maths="${p1e}"><pre>${p1e}</pre></span>`;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user