Using alt-text of images & option to skip images
Closed this issue · 2 comments
sambokai commented
This should return "Google Search":
removeMd("![Google Search](https://www.google.com/images/googlelogo.png)")
There should also be an option to skip images:
The following should then return "Welcome to our Website":
removeMd("![Google Search](https://www.google.com/images/googlelogo.png) Welcome to our Website.")
Any thoughts?
stiang commented
Agreed. If you’re up for submitting a PR I’d gladly merge it!
sambokai commented
Sure. I can take a shot.
Edit:
Took a look at the codebase. Noticed that the second case is already handled. I will implement the proposed change today and issue a pull request later.
One more thing: I propose that the useImgAltText option be on by default. What do you think? @stiang