markdown-it-mdc
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

markdown-it-mdc

npm version npm downloads bundle JSDocs License

MDC (Markdown Components) for markdown-it.

Use VS Code MDC Extension for IDE support.

Usage

npm i markdown-it markdown-it-mdc
import MarkdownIt from 'markdown-it'
import pluginMdc from 'markdown-it-mdc'

const md = new MarkdownIt()
  .use(pluginMdc)

const result = md.render(`
# Hello

Hello **World** with :my-component{.text-red name="foo"}!
`)

Features

This plugin implements all the syntaxes documented in MDC Syntax. We are still testing behavior compatibility in detail before reaching v0.1.0.

Sponsors

License

MIT License © 2022 Anthony Fu

Package Sidebar

Install

npm i markdown-it-mdc

Weekly Downloads

2,563

Version

0.2.5

License

MIT

Unpacked Size

25.6 kB

Total Files

6

Last publish

Collaborators

  • antfu