diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a612054 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run vite", + "runtimeExecutable": "npm", + "cwd": "${workspaceFolder}", + "args": [ + "run", + "dev" + ] + }, + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..10a0a9e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dependi.npm.lockFileEnabled": true +} diff --git a/app/app.vue b/app/app.vue index 23f1520..1fa4810 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,6 +1,4 @@ diff --git a/app/components/Markdown/Renderer.vue b/app/components/Markdown/Renderer.vue index a8ea532..85f9843 100644 --- a/app/components/Markdown/Renderer.vue +++ b/app/components/Markdown/Renderer.vue @@ -41,11 +41,15 @@ const renderNode = (node: any, index: number): any => { return null; }; -defineRender(() => { +const render = () => { const children = ast.value?.children?.flatMap(renderNode) || []; return h('div', { class: 'prose-wrapper' }, [ h('article', { class: 'markdown-body' }, children) ]); -}) +} + + \ No newline at end of file diff --git a/app/components/Markdown/ShikiHighlight.vue b/app/components/Markdown/ShikiHighlight.vue index 051c0b7..7255bfe 100644 --- a/app/components/Markdown/ShikiHighlight.vue +++ b/app/components/Markdown/ShikiHighlight.vue @@ -1,4 +1,4 @@ -