You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is recent work in the python parser on bringing in djot/pandoc style inline & block attributes. Which is a really helpful and standardized concept.
I think that we should aim to discuss how we adopt this in the myst-spec and across all myst projects. There is some initial work at implementations here:
I think from a MEP perspective we could aim to add block & inline attributes, address the conflict with (targets)=. I think a future MEP could aim to resolve how directives and roles integrate with this feature. For example, after the inclusion of block syntax, we would support something like:
{.dropdown}
:::{admonition} Title
Body
:::
However, there are many different ways we could combine these as we modify MyST syntax to resolve some of the redundancy that this allows.
Suggested MEPs:
add block syntax (e.g. above any element, how they combine, etc.)
add inline role attributes syntax (e.g. only on images, spans, code etc, not any words), builds on (1)
discuss how to rationalize the new syntax with directives, engaging the djot community (ideally) along the way
@chrisjsewell can you add any other context/pointers please?!
The text was updated successfully, but these errors were encountered:
There has been a lot of discussion dating back to 2019/2020 on how to add options to roles, and easier/faster ways to add options to directives.
For example:
There is recent work in the python parser on bringing in djot/pandoc style inline & block attributes. Which is a really helpful and standardized concept.
I think that we should aim to discuss how we adopt this in the myst-spec and across all myst projects. There is some initial work at implementations here:
I think from a MEP perspective we could aim to add block & inline attributes, address the conflict with
(targets)=
. I think a future MEP could aim to resolve how directives and roles integrate with this feature. For example, after the inclusion of block syntax, we would support something like:However, there are many different ways we could combine these as we modify MyST syntax to resolve some of the redundancy that this allows.
Suggested MEPs:
@chrisjsewell can you add any other context/pointers please?!
The text was updated successfully, but these errors were encountered: