Conversation
|
I think maybe the current behaviour might be desirable and someone could use an ignore comment for codeblocks that really need this? |
|
I see dprint as a formatter, something that makes the formatting of a file consistent without changing the underlying meaning. In Markdown, that means that the HTML produced before and after running dprint won't change, but the way the Markdown is presented improves (word wrapped, consistent headings, etc.). Removing leading spaces is certainly a content change (since the resulting HTML produced differs). While I can see that some might view this as useful cleanup, I hesitate to have dpring make any true content changes to the underlying Markdown. I'm open to your thoughts, though. Perhaps we could make the remove indent in code blocks a non-default option with a warning in the docs "NOTE: changes resulting HTML, but might be your desired outcome"? |
In Markdown,
renders differently than
, but the current code strips the indent.