Skip to content

Commit e951290

Browse files
committed
Add test to show backslash roundtripping works
Closes syntax-tree/mdast-util-from-markdown#10.
1 parent cb5b1a3 commit e951290

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,5 +2724,11 @@ test('roundtrip', function (t) {
27242724

27252725
t.equal(to(from(doc)), doc, 'should roundtrip formatted URLs')
27262726

2727+
var step1 = '\\ \\\\ \\\\\\ \\\\\\\\'
2728+
var step2 = '\\ \\ \\\\\\ \\\\\\\\\n'
2729+
2730+
t.equal(to(from(step1)), step2, 'should roundtrip backslashes (1)')
2731+
t.equal(to(from(step2)), step2, 'should roundtrip backslashes (2)')
2732+
27272733
t.end()
27282734
})

0 commit comments

Comments
 (0)