We plan to replace our current markdown based editor with a prosemirror implementation.
I’ve extended the markdown example with some markdown-it plugins and everything worked fine so far.
One problem I’am currently struggling with is allowing breaks and other markup within tables cells, since new lines are not allowed within markdown tables. Most Markdown editors allow
<br> tags within tables in order to add new lines. Now I need a way for switching form new lines to
<br> tags while serializing the content of a table cell to markdown and also allow
<br> tags in the MarkdownParser. I think the parsing should not be a problem but rather the serialization.
Here is my current serialization logic for a table cell, which currently only extracts the textContent, otherwise the table will be destroyed by new lines.
Perhaps anyone of you solved this issue before or has an idea how to solve it.
Also, thanks for this amazing project!