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

Compatibility with micromark's nested directive syntax #9450

Closed
dmca-glasgow opened this issue Feb 12, 2024 · 0 comments
Closed

Compatibility with micromark's nested directive syntax #9450

dmca-glasgow opened this issue Feb 12, 2024 · 0 comments

Comments

@dmca-glasgow
Copy link

dmca-glasgow commented Feb 12, 2024

Describe your proposed improvement and the problem it solves.

Given the following LaTeX:

\begin{task}
Test task
  \begin{answer}
  Test answer
  \end{answer}
\end{task}

When running the command:

pandoc --output test.md test.tex

The resulting Markdown looks like this:

::: task
Test task

::: answer
Test answer
:::
:::

In order to be comaptible with micromark-extension-directive, Pandoc could match their nested directive syntax, which requires outer directives to increment preceding colons (search their readme for "nest" to see their example), for example:

:::: task
Test task

::: answer
Test answer
:::
::::

Thanks.

Related discussion: #9449

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

No branches or pull requests

1 participant