diff --git a/docs/recipes/svelte.md b/docs/recipes/svelte.md index 079bb7d..f7cbdb3 100644 --- a/docs/recipes/svelte.md +++ b/docs/recipes/svelte.md @@ -20,6 +20,10 @@ Creating a component is pretty easy. import { commonmark } from "@milkdown/kit/preset/commonmark"; import { nord } from "@milkdown/theme-nord"; + /** + * + * @param {HTMLDivElement} dom + */ function editor(dom) { // to obtain the editor instance we need to store a reference of the editor. const MakeEditor = Editor.make()