Brickster / pretty-markdown

Sublime Text plugin for beatifying a markdown file when saving.
MIT License
0 stars 0 forks source link

List formatters don't work with items containing multiple paragraphs #18

Open Brickster opened 10 years ago

Brickster commented 10 years ago

When an item in a list to be formatted contains multiple paragraphs, the formatter incorrectly thinks the list has ended.

For the list:

1. Item 1

    It has multiple paragraphs.

3. Item 2

The expected output would be:

1. Item 1

    It has multiple paragraphs.

2. Item 2

Currently, it becomes two lists:

1. Item 1

    It has multiple paragraphs.

1. Item 2

This applies to both ordered and unordered lists.