
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
quill-mermaid
Advanced tools
A Quill.js module to add Mermaid support. Help you to write flowcharts, sequence diagrams, gantt charts and more.
A Quill.js module to add Mermaid support. Help you to write flowcharts, sequence diagrams, gantt charts and more.
If you are familiar with Markdown you should have no problem learning Mermaid's Syntax.
Makesure mermaid is loaded on window
import QuillMermaid from 'quill-mermaid';
import 'quill-mermaid/dist/index.css';
Quill.register({
'modules/mermaid': QuillMermaid,
}, true);
const quill = new Quill('#editor', {
theme: 'snow',
modules: {
toolbar: [
// ...
// add mermaid chart button
['mermaid-chart'],
],
mermaid: {
selectorOptions: {
onDestroy() {},
onRemove(blot) {},
onEdit(blot, isEnter) {},
},
histroyStackOptions: {
maxStack: 100,
delay: 1000
},
}
},
});
| attribute | description | type | default |
|---|---|---|---|
| selectorOptions.onDestroy | trigger when selector destroy | () => void | - |
| selectorOptions.onRemove | trigger when selector click remove button. if it returns true, the chart it will not be removed | (blot: MermaidChartFormat) => boolean | - |
| selectorOptions.onEdit | trigger when selector click edit button | () => void | - |
| histroyStackOptions.maxStack | max record mermaid editor history | number | 100 |
| histroyStackOptions.delay | record input value the time interval each time(ms) | number | 1000 |
| histroyStackOptions.template | custom the chart template | Record<string, string> | - |
FAQs
A Quill.js module to add Mermaid support. Help you to write flowcharts, sequence diagrams, gantt charts and more.
We found that quill-mermaid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.