Fix escaped markdown passing backslashes through
Fixes https://github.com/vector-im/riot-web/issues/11230 Signed-off-by: Bob Rao <bob+git@vulpin.com>
This commit is contained in:
parent
6f6d6b096a
commit
fde30577e4
2 changed files with 10 additions and 0 deletions
|
@ -43,4 +43,10 @@ describe('editor/serialize', function() {
|
|||
const html = htmlSerializeIfNeeded(model, {});
|
||||
expect(html).toBe("<em>hello</em> world");
|
||||
});
|
||||
it('escaped markdown should not retain backslashes', function() {
|
||||
const pc = createPartCreator();
|
||||
const model = new EditorModel([pc.plain('\\*hello\\* world')]);
|
||||
const html = htmlSerializeIfNeeded(model, {});
|
||||
expect(html).toBe('*hello* world');
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue