edemaine / coauthor

Coauthor supercollaboration/discussion forum
MIT License
245 stars 32 forks source link

Markdown lists mixed with LaTeX environments #637

Open edemaine opened 8 months ago

edemaine commented 8 months ago

What's wrong?

Markdown lists both within and immediately after LaTeX environments cause the latter to get no <ul> wrapper

How to Reproduce

\begin{definition}
- Inside bullet
- Inside bullet
\end{definition}
Some text:
- Outside bullet
- Outside bullet

Example post

Root issue

Investigating more, this is about interactions between HTML and Markdown parsing. Consider:

<blockquote>
* Hello world
</blockquote>
* item
* item

The Markdown parser has been told to ignore the <blockquote>s, so doesn't realize that the </blockquote> terminates the list.

Perhaps we need to grab HTML blocks but then run the insides through Markdown, instead of just treating them raw.