hexojs / hexo-renderer-markdown-it

Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
MIT License
344 stars 60 forks source link

Fixes "alt" tag not showing, when `images` option is used #210

Closed benwinding closed 9 months ago

benwinding commented 10 months ago

Problem

When using the images: config option, the alt tag doesn't get added to the attributes.

Steps to Reproduce

Fix

Use the token.content which contains the "alt text" from the markdown image.

Example markdown image image

What's available in the context during debugging image

Note: I'm not sure if it would be better to fix this up the call-chain :shrug: