allow empty string as firstDelim #87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
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?
Hey!
Thanks for all the great work you put into Prosemirror!
We recently used prosemirror-markdown to transform our JSON content to Markdown. While doing that, we had the case that we wanted to render a list in which all items except the first had a delimiter.
This wasn't possible since passing in an empty string as
firstDelimwas considered falsy infirstDelim || delim.I would like to propose changing it to
firstDelim != null ? firstDelim : delimso that delim really only gets used if firstDelim is null or undefned.Looks reasonable, thanks.