IonicaBizau / medium-editor-markdown

:pencil: A Medium Editor extension to add markdown support.
http://ionicabizau.github.io/medium-editor-markdown/
MIT License
777 stars 66 forks source link

Create rule #72

Closed ct1735x closed 3 years ago

ct1735x commented 3 years ago

Currently, tables created with medium editor doesnt convert to working markdown tables, its just putting spaces everywhere in the markdown instead of using pipes and dashes

Thats is because there is no rule defined in me-markdown.standalone.min.js to handle tables.

I would like to know how I can create a rule to achieve this WYSIWYG to markdown conversion

I already tried @jerrywham solution from issue #31 but it's definetly not working properly.

jerrywham commented 3 years ago

My solution is for me-mardown.standalone.js, not for min version which is minified from me-mardown.standalone.js without my code.

ct1735x commented 3 years ago

My solution is for me-mardown.standalone.js, not for min version which is minified from me-mardown.standalone.js without my code.

The problem is exactly the same with me-markdown.standalone.js This javascript isn't made to handle medium editor tables -> in me-markdown.standalone.js, there is no mention of "table", "td" , "tr" or pipes

(je crois que tu parles francais, on pourrait gagner du temps)