mbakeranalecta / sam

Semantic Authoring Markdown
Other
79 stars 8 forks source link

Allowing comments as the end of the document #114

Closed mbakeranalecta closed 7 years ago

mbakeranalecta commented 7 years ago

Currently, the parser allows comments after the end of the document if they are indented, and they are serialized as children of the root block. But it does not allow comments at the root level after the root block, even though it permits them before.

What should the rule be on this?

The issue of remarks, as outlined in #113 have to be taken into consideration here as well. Different rules for comments and remarks are probably not a good idea.

mbakeranalecta commented 7 years ago

Going a different way on remarks means that remarks are not longer relevant to this question.

mbakeranalecta commented 7 years ago

Addressed in 022d87a98012ac5945d8e2eda9a71223db00f3e5

Root level comments are allowed at the beginning and end of the document, but not in the middle.