String Milkdown
Renders a WYSIWYG markdown editor using Milkdown's Crepe preset.
Activation Conditions
"type": "string""x-format": "milkdown"- Milkdown must be available (
window.Milkdown.Crepe) - Plugin: Milkdown
Plugin Options
Options can be passed to the plugin via "x-milkdown" keyword.
Unlike jedison's other plugin editors, Milkdown ships as an ES module with no plain <script>-loadable build, so it can't be dropped in with a single CDN tag — it needs to be imported and exposed as window.Milkdown (see the example source below). Its theme CSS also isn't plain-<link>-loadable as shipped (it uses bundler-only @import specifiers), so the example inlines a pre-flattened copy instead.
The cursor feature is disabled in this example: loading Milkdown from separate CDN module URLs like this pulls in two different copies of prosemirror-state, and that feature crashes on mount ("Adding different instances of a keyed plugin") when that happens. This is a quirk of loading Milkdown via CDN, not something that happens in jedison's own bundled build. All other Crepe features work normally.
Milkdown's markdown serializer also always adds a trailing newline, so a value like "a" round-trips as "a\n".