From f34a3d2c789687895797c3b94d0bc9f6d5ebca9b Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 21 Mar 2024 14:47:05 +0100 Subject: [PATCH] put it after Structure --- server/plugins/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/content.ts b/server/plugins/content.ts index c89054e6..4be4cd0a 100644 --- a/server/plugins/content.ts +++ b/server/plugins/content.ts @@ -77,7 +77,7 @@ export default defineNitroPlugin((nitroApp) => { const index = file.body.children.findIndex(child => child.tag === "h2" && child.props.id === "structure") console.log(index) if (index !== -1) { - file.body.children.splice(index, 0, { + file.body.children.splice(index + 1, 0, { type: "element", tag: 'matrix-pdock', props: {}, -- GitLab