atom-tidy-markdown icon indicating copy to clipboard operation
atom-tidy-markdown copied to clipboard

Nested list gets an extra paragraph

Open kingmesal opened this issue 8 years ago • 3 comments

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.

kingmesal avatar May 16 '16 18:05 kingmesal

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:

screen shot 2016-05-23 at 9 35 51 am

as opposed to the original:

screen shot 2016-05-23 at 9 41 02 am

michaelabon avatar May 23 '16 13:05 michaelabon

Came here to report the same issue.

Example

eivindml avatar Jul 02 '16 09:07 eivindml

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.

jtebert avatar Aug 02 '16 16:08 jtebert