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
A missing part of the MyST spec is the ability to add attributes in a standard way to roles. For example to highlight a section as yellow/red/green, or add parameters to a cite node as to why you are citing or to only cite the year.
Current State
There is no standardized way to do this in myst at the moment, and there is a pattern of either overloading the role name cite:ps or having a single attribute for (usually) a link {doc}`title <document.md>`, each role is currently on its own to define these, and there are no options defined on the RoleSpec for plugins (e.g. in the mystmd implementation).
Prior Art
There are a few places to look for prior art and inspiration on how to design the syntax for this:
I took a look at your proposal in the HackMD and added a few comments and suggested edits. I think that this proposal makes sense and I'd support it. It will unlock a lot of functionality, it doesn't break anything, it follows patterns that are common across adjacent document engines/syntaxes, and it doesn't introduce any new concepts or major complexity in MyST.
A missing part of the MyST spec is the ability to add attributes in a standard way to roles. For example to highlight a section as yellow/red/green, or add parameters to a
cite
node as to why you are citing or to only cite the year.Current State
There is no standardized way to do this in myst at the moment, and there is a pattern of either overloading the role name
cite:ps
or having a single attribute for (usually) a link{doc}`title <document.md>`
, each role is currently on its own to define these, and there are no options defined on the RoleSpec for plugins (e.g. in the mystmd implementation).Prior Art
There are a few places to look for prior art and inspiration on how to design the syntax for this:
role
directive.Previous Discussions
Considerations
Example Directions
For roles, use the same solution as pandoc/quarto/djot to expand the role:
Consider that the directives, if we go in this direction, could also be a very simple way of adding attributes and be more in line with other tools.
The text was updated successfully, but these errors were encountered: