Skip to content

Commit 849ec6f

Browse files
committed
Show hr after FrontMatter
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 4908c24 commit 849ec6f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/nodes/FrontMatter.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ const FrontMatter = TiptapCodeBlock.extend({
2323
},
2424
]
2525
},
26+
renderHTML(node, attr) {
27+
return ['div',
28+
this.parent(node, attr),
29+
['hr']]
30+
},
2631
toMarkdown: (state, node) => {
2732
if (!state.out.match(/^\s*/)) throw Error('FrontMatter must be the first node of the document!')
2833
state.write('')

0 commit comments

Comments
 (0)