dprint / dprint-plugin-markdown

Markdown code formatting plugin for dprint.
MIT License
25 stars 9 forks source link

Line breaks with double spaces and/or backslash not supported #35

Closed satyarohith closed 3 years ago

satyarohith commented 3 years ago

backlash

Input:

foo<space><space>\
bar<space><space>\
baz

Output:

foo 
bar
baz

Expected output:

foo<space>\
bar<space>\
baz

spaces

Input:

foo<space><space>
bar<space><space>
baz

Output:

foo<space> 
bar<space>
baz

Expected output:

foo<space><space>
bar<space><space>
baz

ref: https://github.com/denoland/deno/issues/9727

dsherret commented 3 years ago

Thanks! I'll open a PR in deno's repo with this fix as I have a few other changes to make.