<el-dm-markdown-input>Markdown editor with syntax-highlighted write mode, preview, file upload, autocomplete, and word count.
A markdown editor with syntax-highlighted write mode and rendered preview mode. Switch between tabs using the toolbar.
The status bar shows a soft word cap warning when approaching the limit.
The dark attribute switches Prism.js syntax highlighting to a dark theme.
Switch to the Preview tab to see rendered markdown with KaTeX math, syntax-highlighted code blocks, GFM tables, task lists, and mermaid diagrams.
Type @ to trigger mention suggestions, or # for reference
suggestions. The element fires mention-query / reference-query
events — call resolve(suggestions) to populate the dropdown.
el-dm-markdown-input is a form-associated element — its value is
included in FormData automatically.
The element fires a change event with detail.value on every edit.