Closed samuelcolvin closed 6 years ago
This seems to be a problem with the line below the heading in the table | --- | --- |
without that it seems to work fine.
Oh thanks! This turned out to be a fairly easy fix, so here it is - https://github.com/Rosey/markdown-draft-js/pull/81 😄
Great, thanks.
as per the example below,
markdownToDraft
does strange things with tables, they're converted to just the last value in the last row, plus the line before the table is removed.I know markdown-draft-js (understandably) doesn't support tables fully but it would be great if it could just leave them alone rather than messing them up.
(the
draftToMarkdown
in the last line is unnecessary, it's just there to demonstrate more clearly what the output looks like).