Revert "upd: 脚注去掉水平线"

This reverts commit 344e280dab.
This commit is contained in:
purocean
2021-09-09 14:37:39 +08:00
parent 40828f2409
commit 7105bdd0a5
+6 -2
View File
@@ -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])
])
}
}