tommoor / slate-md-serializer

A Markdown serializer for the Slate editor framework
MIT License
64 stars 36 forks source link

Table blocks should be surround by newline characters #41

Open olipo186 opened 4 years ago

olipo186 commented 4 years ago

Hi!

This is an improved version of a previous PR that fixes the table syntax issue described here: https://github.com/tommoor/slate-md-serializer/issues/40

olipo186 commented 4 years ago

Hi @tommoor!

I had another look at this issue and dug into your unit tests this time. I'm hoping this PR will be merged. It will make the markdown produced by your editor a little bit more similar to other libs which will improve interoperability.

tommoor commented 4 years ago

Hi @olipo186 - I can definitely agree with the sentiment that the tables produced should be parsable by other markdown implementations.

It looks like the snapshots have changed in this branch which means the Slate output isn't compatible with the previous version though?

Sidenote: You should know that I'm currently working on converting rich-markdown-editor to Prosemirror which will largely make this redundant unless someone chooses to fork and continue development on the Slate version