{"repo":"syntax-tree/mdast-util-directive","free":true,"listed":false,"github":"https://github.com/syntax-tree/mdast-util-directive","clone":"git clone https://github.com/syntax-tree/mdast-util-directive.git","description":"mdast extension to parse and serialize generic directives (`:cite[smith04]`)","language":"JavaScript","stars":20,"topics":["unist","mdast","mdast-util","directive","generic","container","extension","markdown"],"license":"MIT","category":"productivity","readme_excerpt":"mdast-util-directive [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] [mdast][github-mdast] extensions to parse and serialize [generic directives proposal][commonmark-directive-proposal] ( :cite[smith04] , ::youtube[Video of a cat in a box]{v=01ab2cd3efg} , and such). Contents What is this? When to use this Install Use API directiveFromMarkdown() directiveToMarkdown(options?) ContainerDirective Directives LeafDirective TextDirective ToMarkdownOptions HTML Syntax Syntax tree Nodes Mixin Types Compatibility Related Contribute License What is this? This package contains two extensions that add support for directive syntax in markdown to [mdast][github-mdast]. These extensions plug into [ mdast-util-from-markdown ][github-mdast-util-from-markdown] (to support parsing directives in markdown into a syntax tree) and [ mdast-util-to-markdown ][github-mdast-util-to-markdown] (to support serializing directives in syntax trees to markdown). When to use this Directives are one of the four ways to extend markdown: an arbitrary extension syntax (see [Extending markdown][github-micromark-extending] in micromark’s docs for the alternatives and more info). This mechanism works well when you control the content: who authors it, what tools handle it, and where it’s displayed. When authors can read a guide on how to embed a tweet but are not","default_branch":null,"files":null,"tree":[],"storefront":"/r/syntax-tree","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/syntax-tree/mdast-util-directive/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}