JuliaFormatter.jl
JuliaFormatter.jl copied to clipboard
HTML inside Markdown not formatted correctly, leads to errors.
Specifically, it removes and adds new lines in seemingly random places. Removing the lines can break some of the desired behavior. It seems like the formatter is just not aware of HTML.
For instance, in the example below (a GitHub README.md), after removing the blank line the heading doesn't render as a heading anymore.

Also, the format off/on I tried in that example did not work.
anything outside of code blocks in a format file is done by CommonMark.jl, so this is like a bug with it.
Thanks! Maybe it's related to MichaelHatherly/CommonMark.jl#42. I'll investigate later.