From 1d43c28afe037bf6f8ae0295cb580c6fbb2ffd09 Mon Sep 17 00:00:00 2001 From: CodeDoes Date: Mon, 21 Apr 2025 20:36:07 +0200 Subject: [PATCH] Update svelte.md to include jsdoc --- docs/recipes/svelte.md | 4 ++++ 1 file changed, 4 insertions(+) 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()