lostenderman / markdown

:notebook_with_decorative_cover: A package for converting and rendering markdown documents in TeX
http://ctan.org/pkg/markdown
LaTeX Project Public License v1.3c
1 stars 0 forks source link

Fenced div separator fix #157

Closed lostenderman closed 3 months ago

lostenderman commented 4 months ago

[fix in progress]

A top_level group is added modifying whether a fencestart (:::) can interrupt a paragraph or not. Two versions of EndlineExceptions are therefore used, one with a fencestart (when is_top_level is true) and one without. The is_top_level group is set to false before parsing a V("Block") and set to true before parsing a (V("Paragraph").

Passes:

::: {#div}
> a
> :::

b
:::

Fails:

::: {#div}
> a
:::
Witiko commented 3 months ago

Closed via https://github.com/Witiko/markdown/pull/431.