@unified-myst/target-extension
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@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)=
# Header

Allows 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)=
# Header

Targets 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?

Package Sidebar

Install

npm i @unified-myst/target-extension

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

33.9 kB

Total Files

20

Last publish

Collaborators

  • ebp-bot
  • chrisjsewell