From 7105bdd0a590a666d9d724d40488d4e6db574d0b Mon Sep 17 00:00:00 2001 From: purocean Date: Thu, 9 Sep 2021 14:37:39 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"upd:=20=E8=84=9A=E6=B3=A8=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E6=B0=B4=E5=B9=B3=E7=BA=BF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 344e280dab7945185db7fa60c81e59e59c0a9831. --- src/renderer/plugins/markdown-footnote.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/plugins/markdown-footnote.ts b/src/renderer/plugins/markdown-footnote.ts index e215b0b8..a3606ee9 100644 --- a/src/renderer/plugins/markdown-footnote.ts +++ b/src/renderer/plugins/markdown-footnote.ts @@ -5,7 +5,7 @@ // @ts-nocheck // https://github.com/markdown-it/markdown-it-footnote/blob/master/index.js -import { createVNode } from 'vue' +import { createVNode, Fragment } from 'vue' import { Plugin } from '@fe/context/plugin' // Process footnotes @@ -46,9 +46,13 @@ function render_footnote_ref (tokens, idx, options, env, slf) { function render_footnote_block_open (tokens, idx, options) { const ol = createVNode('ol', { class: 'footnotes-list' }, []) + return { parent: ol, - node: createVNode('section', { class: 'footnotes' }, [ol]) + node: createVNode(Fragment, {}, [ + createVNode('hr', { class: 'footnote-sep' }), + createVNode('section', { class: 'footnotes' }, [ol]) + ]) } }