{"repo":"hilookas/markdown-it-directive","free":true,"listed":false,"github":"https://github.com/hilookas/markdown-it-directive","clone":"git clone https://github.com/hilookas/markdown-it-directive.git","description":"Directive extension for markdown-it markdown parser.","language":"JavaScript","stars":16,"topics":["markdown","markdown-it","markdown-plugin","commonmark"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"markdown-it-directive 中文指南 Directive extension for markdown-it markdown parser. Make your Markdown great again! Basically follow Generic directives/plugins syntax spec on CommonMark Community and compatable with markdown-it-container. Recommended for using with markdown-it-directive-webcomponents. Install npm i markdown-it-directive Required dependencies Please note that to start using the package, your project must also have the following installed: markdown-it , @types/markdown-it . Check out the peerDependencies section of package.json for accurate information. API markdown-it-directive plugin only extracts valid directive from the markdown document, and passes it to the corresponding registered handler for further processing. There are two types of directive and handler , inline level and block level. After loading this plugin, two arrays inlineDirectives and blockDirectives will be added to the md instance for registering inline level and block level handler , and it will add inline directive and block directive rules to block ruler and inline ruler to extract directive from the document. Here are three directive formats that can be recognized: The name of the handler , which is the key of the array, only allows lowercase letters and - , the directive name in the document is case-insensitive, and all will be converted into - to find the corresponding handler . handler will receive the parsed link destinations (ie those in () ) (ie dests ), attributes (ie attrs ), not une","default_branch":null,"files":null,"tree":[],"storefront":"/r/hilookas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hilookas/markdown-it-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."}