Anonymous directives (fenced divs and bracketed spans) #28
Labels
🙅 no/wontfix
This is not (enough of) an issue for this project
👎 phase/no
Post cannot or will not be acted on
Initial checklist
Problem
In the original proposal for generic directives, there is a specification for container directives and inline directives which have no name. An example of their syntax:
See the above on try pandoc
Larger set of examples
In addition to the names being possible to omit, the bracketed span also lacks the single colon of the inline directive.
Support for these directives would provide near1 complete support for pandoc's fenced divs and bracketed spans, which are enabled in its default markdown parser.
For reference, the equivalent syntax in the current implementation would be the following:
Solution
micromark-extension-directive should support inline and container directives that lack a name to better support pandoc's fenced divs and bracketed spans. Preferably, inline directives should also be able to lack the initial colon when they lack the name.
Alternatives
As this is a request to support a specific syntax feature, there probably is not any alternative possible.
Footnotes
pandoc's fenced divs are allowed to have whitespace between the opening fence and the name (which in pandoc is either an attribute that becomes a class or curly braces that specify any attributes). I am not asking to support this. ↩
The text was updated successfully, but these errors were encountered: