mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 12:01:30 +03:00
send fallback in pre tags, not code
This commit is contained in:
parent
428a6b94ff
commit
e4448ae1ad
1 changed files with 2 additions and 2 deletions
|
@ -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>`;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue