Skip to content

MDC (Markdown Components) syntax for markdown-it.

License

Notifications You must be signed in to change notification settings

ldonetti/markdown-it-mdc

 
 

Repository files navigation

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

About

MDC (Markdown Components) syntax for markdown-it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.3%
  • HTML 14.5%
  • JavaScript 0.2%