@comark/markdown-it
v0.3.2
Published
Comark (Component in Markdown) support for markdown-it
Readme
@comark/markdown-it
Comark (Component in Markdown) for markdown-it.
Use VS Code MDC Extension for IDE support.
Usage
npm i markdown-it @comark/markdown-itimport comark from '@comark/markdown-it'
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
.use(comark)
const result = md.render(`
# Hello
Hello **World** with :my-component{.text-red name="foo"}!
`)Features
This plugin implements all the syntaxes documented in Comark Syntax. We are still testing behavior compatibility in detail before reaching v1.0.0.
- [x] Block Component
- [x] Nesting
- [x] YAML Props
- [x] Slots
- [x] Inline Components
- [x] Inline Props
- [x] Span
- ~~Frontmatter~~. Frontmatter is not built-in in this plugin, we recommend using
@mdit-vue/plugin-frontmatterif you want to use this plugin outside of Comark package,
License
Made with ❤️
Published under MIT License.
Credits
❤️ This project was originally created by Anthony Fu in 2022. Special thanks for the amazing work and inspiration! 🙏✨
