melmothx / text-amuse

Text::Amuse parser
http://www.amusewiki.org
5 stars 2 forks source link

Indented paragraph inside a <quote> should be a plain paragraph #35

Open link2xt opened 6 years ago

link2xt commented 6 years ago

Here is an example:

<quote>
   Not a nested quote
</quote>

Emacs Muse parses it as a paragraph within a blockquote, not a paragraph within a blockquote within a blockquote. Similarly, right and center alignment within a blockquote is impossible in Emacs Muse (in Text::Amuse it is still possible to do with <right> or <center>).

Just fixed it in pandoc: https://github.com/jgm/pandoc/commit/3480a8acc24c650bc208b2e6cc8f1d5ac2e04aa5

This difference is not significant, but in my case it matters, because I am in the process of refactoring Muse reader to avoid reparsing (list parsing takes exponential time, see https://github.com/jgm/pandoc/issues/4285), and not having to keep track of whether I am inside a list or not makes things much easier. The rule is simple now: indented paragraphs, headers and notes are only parsed on the topmost level.

melmothx commented 6 years ago

I'm mumbling about this, but I'm reclutant to change working code for a thing which looks like confusing input and implementation artifact.