WARNING
And, if you’re looking to help out, check out our Call to action in the Contributing section.
If you are upgrading an existing app, read the Upgrade Guide for QMarkdown v3.
Everything you need for a complete solution
QMarkdown allows you to write markdown via slotted content (or a src property). QMarkdown wraps the markdown-it package, which for the most part, follows the commonmark specifications. It also has a lot of plugins, or you can write your own, for extending QMarkdown.
Features
- Blockquotes
- Code blocks (with copy to clipboard and line numbers support)
- Containers
- Emphasis
- Headings
- Horizontal rules
- Links (specific and magic links)
- Lists
- Tables
- Titles
- Typography
QMarkdown is also extensible via the plugins property.
Try out these fine plugins for additional functionality:
Global Properties
For all properties that can be used with QMarkdown, you can set the global properties via the useQMarkdownGlobalProps function.
Here is an example using the markdown-it-mermaid plugin from a boot file:
import { useQMarkdownGlobalProps } from '@quasar/quasar-ui-qmarkdown'
import mermaid from '@datatraccorporation/markdown-it-mermaid'
// defaults for QMarkdown
useQMarkdownGlobalProps({
plugins: [mermaid]
})The markdown-it-mermaid plugin is now globally available wherever you use QMarkdown.