fix: render line break in text/plain format for hard breaks, fix #1842

This commit is contained in:
Philipp Kühn 2021-09-06 19:05:01 +02:00
parent 73a278a5d3
commit 787d7848cd

View File

@ -38,6 +38,10 @@ export const HardBreak = Node.create<HardBreakOptions>({
return ['br', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)]
},
renderText() {
return '\n'
},
addCommands() {
return {
setHardBreak: () => ({ commands }) => {