feat(image): optionally add image captions from alt tags#618
feat(image): optionally add image captions from alt tags#618tlhunter wants to merge 1 commit intoshowdownjs:masterfrom
Conversation
5e83432 to
bbb7fac
Compare
|
FYI I'm using this PR on my personal site. Here's an example of a page rendered using this code: |
|
I will pay $10 via PayPal to get this merged and released via npm. /cc @tivie |
|
thank you for your contribution. I've been swamped in work lately, but will use the xmas vacations to look into this. One important thing though, version 2.0 will have templates, which will enable users to easily and completely change the HTML output. |
bbb7fac to
5557e62
Compare
|
PR has been updated to include the dist files. |
|
@tivie I'm interested in this feature. Is there an alternative way to get something equivalent now with 2.0? If not, can you get this merged? |
|
@marcelogp - this feature has already been added & is ready to use. Tho - I don't know why this pull request was never merged from @tlhunter to implement it with his work done already! 😞 Hoping @tivie is willing to close this PR to avoiding causing any future confusion.
|

This PR introduces a new option named
extractImageCaptionsto enable image captions.Input
Output
(newlines added for PR readability, not included in code)
The inspiration for the output markup was taken from here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption
Help Request: While the paragraph tags don't really hurt, they would ideally be removed. Any advice?