executablebooks / mdformat

CommonMark compliant Markdown formatter
https://mdformat.rtfd.io
MIT License
440 stars 46 forks source link

non-breaking space -> error #390

Open nschloe opened 1 year ago

nschloe commented 1 year ago

Describe the bug

Running mdformat on

# X
 

x

(# X\n\xa0\n\nx\n, note the non-breaking space) results in the error message

The formatted Markdown renders to different HTML than the input Markdown. This
is likely a bug in mdformat. Please create an issue report here, including the
input Markdown: https://github.com/executablebooks/mdformat/issues

Reproduce the bug

See above.

List your environment

No response