notslang / tidy-markdown

Beautify Markdown, fixing formatting mistakes and standardizing syntax
https://npmjs.com/package/tidy-markdown
GNU General Public License v3.0
75 stars 11 forks source link

Don't convert <img> elements with extra attributes #58

Closed kent-mcleod closed 6 years ago

kent-mcleod commented 6 years ago

Extra attributes such as style or aria-describedby cannot be represented in markdown but are still reasonably important.

This would fix #55.

I added a couple test cases. I don't use coffee script regularly so let me know if I got any conventions wrong.

notslang commented 6 years ago

looks good, thanks!

graphicsminded commented 6 years ago

Thank you @kent-mcleod and @slang800 for this fix.