mbakeranalecta / sam

Semantic Authoring Markdown
Other
79 stars 8 forks source link

Ambiguous paragraph rules #127

Closed mbakeranalecta closed 7 years ago

mbakeranalecta commented 7 years ago
            |Do| a deer,
            a female deer
            |Re| a drop of
                 golden sun

Both of the above create a single para under the list item. But is that correct for the first one. The rule says a para ends with the first outdented line, and a female deer is outdented from a deer,.

mbakeranalecta commented 7 years ago

The issue here is with a construction like this:

            |Do| a deer,
            a female deer

            One list or two.

            |Re| a drop of
                 golden sun

This splits the list in two with "one list or two." as a paragraph between them. This despite the fact that "a female deer" is wrapped to the paragraph "a deer,".

However, a single space in and it becomes a child. of the list item.

            |Do| a deer,
            a female deer

             One list or two.

            |Re| a drop of
                 golden sun

If it is indented any amount up to the column of "a deer" or one column beyond it, it is treated as a child of the list item. But on more space of indent and it becomes a child of the paragraph error.

mbakeranalecta commented 7 years ago

Addressed in a58a13f54a18f2c2afea3a81aada5d23bfd705e1 by changing the paragraph wrap rules for lists. Paragraphs that wrap to the next line must line up under the first character of the paragraph, not the start of the list.