quill-delta-markdown
quill-delta-markdown copied to clipboard
refactored code
I tried to simplify the library a bit and rework the code. I redid fromDelta and I believe this is more simple to follow and it should be quicker since I don't do all the type checking with loadedash and also remove loaddash. This is mostly for my own project but, wanted to make this available to you. I changed your testing from moca to coverify. I copied in the changes from @cmbankester for the building. I also setup the packing so I can import this into my own project with bower. Not sure it they were working in the past but I may of broken toDelta. Two of the test fail and one of the test I removed because the expected is not the same as the associated markdown.
https://www.npmjs.com/package/coverify
The 'converts text block quote' fails for me, the italic should only be on the '1'.
It's correct that the 'converts text with image' and 'converts text with image with title' fail, that is one of the issues from the Readme.md file.
Looking at the code, is it still possible to extend the converters with your own code? For when you want to add your own special markup.
Otherwise looking good :+1:
You should be able to modify the block and inline rules. I don't think I expose any of that functionality with this code. I could wrap it in a class rather then a function call.
It's not necessary for this PR, as long as it's not to hard to make it possible later.
is there any interest to support anything beyond markdown.
The project that was the inspiration for this code, did some custom syntax to add extra functionality. And every thing that quill supports should be possible to convert.
What is the project you were referring to