atom-tidy-markdown
atom-tidy-markdown copied to clipboard
Nested list gets an extra paragraph
When running tidy on
- **Campaign**: indicates the campaign under which the user joined, defined as the following (fictional) campaigns driven by our (also fictional) marketing team:
- **NONE** no campaign
It changes it to
- **Campaign**: indicates the campaign under which the user joined, defined as the following (fictional) campaigns driven by our (also fictional) marketing team:
- **NONE** no campaign
Notice the blank line.
This also renumbers ordered lists. It also ruins nested list items that contain code fence blocks.
Note the 3.
bullet point that should be a nested 1.
as well as the contents of the code fence block in:
as opposed to the original:
Came here to report the same issue.
This issue comes from the markdown styleguide that tidy-markdown uses, which calls for newlines all over the place. This seems like an incredibly questionable choice to me, since it affects the output file (in weird ways), not just the formatting of .md
. There are other specs out there that seem like better options, but from responses to other issues posted on this, the owner seems rather reluctant on this point.