Allow to specify hard break node name #94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "custom-hard-break-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm the maintainer of tiptap-markdown, and I use prosemirror-markdown to serialize content into markdown string.
For now, I'm overriding the schema node name to
"hard_break"but it's not really satisfying.My proposal is to add
hardBreakNodeNameto the serializer options with"hard_break"by default.Thanks, that looks reasonable.
This could have used a bit more care—see https://github.com/ProseMirror/prosemirror-markdown/pull/96 . But I guess that's on me for not testing it locally before merging.
Ouch... sorry, I think I rushed this a little bit. To be honest I tried to build + test the repo before publishing this PR but I only found out now I have to run
npm run preparebeforenpm run test. Have you considered setup a CI (e.g. GH action) ?