JSPM

markdown-it-admon

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 676
  • Score
    100M100P100Q102323F
  • License MIT

Plugin to create admonitions for markdown-it markdown parser

Package Exports

  • markdown-it-admon
  • markdown-it-admon/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (markdown-it-admon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

markdown-it-admon

Plugin for creating admonitions for markdown-it markdown parser.

With this plugin you can create admonitions like:

!!! warning
    *here be dragons*

Markdown syntax follows python-markdown.

rST suggests the following "types": attention, caution, danger, error, hint, important, note, tip, and warning; however, you’re free to use whatever you want.

A styles file does support the following admonition types: Credits go to vscode-markdown-extended.

'note',
'summary', 'abstract', 'tldr',
'info', 'todo',
'tip', 'hint',
'success', 'check', 'done',
'question', 'help', 'faq',
'warning', 'attention', 'caution',
'failure', 'fail', 'missing',
'danger', 'error', 'bug',
'example', 'snippet',
'quote', 'cite'

Installation

node.js:

$ npm install markdown-it-admon --save

API

const md = require('markdown-it')()
             .use(require('markdown-it-admon') [, options]);

Params:

  • name - container name (mandatory)
  • options?:
    • render - optional, renderer function for opening/closing tokens.

License

MIT

References

!ref