notslang / tidy-markdown

Beautify Markdown, fixing formatting mistakes and standardizing syntax
https://npmjs.com/package/tidy-markdown
GNU General Public License v3.0
75 stars 11 forks source link

Indented tables are destroyed #64

Open cemmy410 opened 5 years ago

cemmy410 commented 5 years ago

If a table is not flush-left, it is not parsed as a table and squashed into one line as if it were regular text.

Example: The table is indented to match the list level (this table is under list item 5). Running the tool destroys the table.

Before: bug-01

After: bug-02

Source markdown for the example:

## Publishing PROJECT.WebUI

1. Open the Solution Explorer
2. Right-click on PROJECT.WebUI
3. Click "Publish"
4. Choose "PUB" in the dropdown box, if it is not already selected
5. Ensure the following settings are correct:

   Setting                | Value
   ---------------------- | -------------------------
   Target location        | `C:\VSOnline\PROJECT_DEPLOY`
   Delete Existing Files: | `True`
   Configuration          | `Release`

6. Click "Publish"