examples
examples copied to clipboard
Example showing how to retrieve the markdown of an editor component on change
Examples show how you can stand up a Milkdown editor component with default values, but I have not been able to find an example where I can register for content changes inside the editor component. I've tried connecting the default value to a reactive variable, but no luck.
This would be a lovely addition to your examples. I'm using Svelte, but I'd imagine any generic example would have transferable concepts to different frameworks.
You find an example in the documentation for the listener plugin: https://milkdown.dev/docs/api/plugin-listener