Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another fenced div + blockquote edge case (vs. Pandoc) #60

Closed
Omikhleia opened this issue Dec 28, 2022 · 1 comment · Fixed by #61
Closed

Another fenced div + blockquote edge case (vs. Pandoc) #60

Omikhleia opened this issue Dec 28, 2022 · 1 comment · Fixed by #61
Labels

Comments

@Omikhleia
Copy link
Contributor

This doesn't parse as a fenced div:

::: {lang=fr}
> Cette citation est en français!
:::

Workaround is to have a blank line after the blockquote:

::: {lang=fr}
> Cette citation est en français!

:::

Pandoc parses the first syntax, though, without issue.

@Witiko
Copy link
Collaborator

Witiko commented Dec 28, 2022

More specifically, lunamark fails to recognize the fenced div, not the blockquote:

$ lunamark -Xfenced_divs <<-EOF
::: {lang=fr}
> Cette citation est en français!
:::
EOF
<p>::: {lang=fr}</p>

<blockquote>
<p>Cette citation est en français! :::</p>
</blockquote>

This indicates that even though we have added an exception that allows the end tag (:::) to break out of a paragraph, our exception fails to apply for blockquote continuation lines.

@Omikhleia, would you like to tackle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants