Package Exports
- @unified-myst/target-extension
Readme
@unified-myst/target-extension
Extension to support the MyST target syntax ((name)=) in unified.
Semantically, a target is an identifier for referencing the preceding syntax block.
For example:
(name)=
# HeaderAllows for the header to be referenced by the identifier name.
Multiple targets can be defined, such that all identifiers will be applied to the preceding (non-target) syntax block, e.g.
(name1)=
(name2)=
# HeaderTargets must be unique, across the entire document.
See Also
TODO
Parsing considerations:
- whitespace inside
(...) - target within other flow level elements
- What to do with non-whitespace after
=?- Should it invalidate the line?
- Should a new block be allowed?
- identifier normalisation?