mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.62k stars 870 forks source link

Added encode url & img size convert #422

Open M97Chahboun opened 1 year ago

M97Chahboun commented 1 year ago

I detected two issues :

  1. convert img size
  2. issue when have spaces on url

in this PR I try to fix this issues. Thank you.

pavelhoral commented 1 year ago

Does this actually solve any issue with the library? AFAIK image size is not part of Common Mark specification and the library is definitelly not a place to fix incorrectly encoded URLs.

I am sure that if you need those custom features they can be achieved by custom rules https://github.com/mixmark-io/turndown#extending-with-rules.

M97Chahboun commented 1 year ago

OK, Thank you.