ProseMirror / prosemirror-markdown

ProseMirror Markdown integration
https://prosemirror.net
MIT License
344 stars 81 forks source link

symbol | in table cells #118

Closed ElenaMikhaylova closed 6 months ago

ElenaMikhaylova commented 8 months ago

Issue I use markdown serializer and when symbol | is presented inside table cell node, it breaks table structure.

Repro For example I need to serialize this table:

Снимок экрана 2024-03-13 в 10 11 36

Current behavior It breaks like this:

Снимок экрана 2024-03-13 в 10 11 54

Result markdown:

 | table header 1 | table header 2 | 
 | --- |--- |
 | table cell 1 | 0 | table cell 2 | 

Expected behavior Symbol | inside text node in table cell should not recognized as column separator

fleon commented 6 months ago

You can escape the pipe: table cell 1 \| 0. afaik there is no other way

marijnh commented 6 months ago

This package doesn't even define a parser/serializer for tables, so I'm going to close this issue.