Revert "Fix escaped markdown passing backslashes through"
This commit is contained in:
parent
b587fd0883
commit
13b08b5fcc
2 changed files with 0 additions and 14 deletions
|
@ -41,14 +41,6 @@ export function htmlSerializeIfNeeded(model, {forceHTML = false} = {}) {
|
|||
if (!parser.isPlainText() || forceHTML) {
|
||||
return parser.toHTML();
|
||||
}
|
||||
// Format "plain" text to ensure removal of backslash escapes
|
||||
// https://github.com/vector-im/riot-web/issues/11230
|
||||
// https://github.com/vector-im/riot-web/issues/2870
|
||||
const postParsePlaintext = parser.toPlaintext();
|
||||
if (postParsePlaintext !== md) {
|
||||
// only return "formatted" text if it differs from the source text
|
||||
return postParsePlaintext;
|
||||
}
|
||||
}
|
||||
|
||||
export function textSerialize(model) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue