mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 10:30:54 +03:00
Revert "send fallback in pre tags, not code" (code looks better)
This reverts commit e4448ae1ad
.
This commit is contained in:
parent
e4448ae1ad
commit
7e6d7053e0
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}"><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>`;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue