arve0/markdown-it-implicit-figures

Compatibility with markdown-it-attrs?

f0rr0 opened this issue · 4 comments

f0rr0 commented

This

![Stuff](./salty_egg.jpg) {.full-width}

produces

<p class="full-width">
  <img src="./salty_egg.jpg" alt="Stuff">
</p>

instead of:

<fig class="full-width">
  <img src="./salty_egg.jpg" alt="Stuff">
  <figcaption>Stuff</figcaption>
</fig>
arve0 commented

Thanks for reporting. Fixed in markdown-it-attrs 0.7.1.

@arvo Thanks for all your hard work on this plugin!

Unfortunately, I'm still encountering the problem described above – even when using all the latest versions of markdown-it, markdown-it-implicit-figures, and markdown-it-attrs.

I've recreated this issue in this fiddle: https://jsfiddle.net/xsywjrzr/1/

Thanks again and let me know if there's anything I can do to help!

arve0 commented

Hm, strange. I'm currently away from the computer, so unable to look into it. Feel free to poke around in the code.

I'll be back later this week.

arve0 commented

See #18. Fixed in markdown-it-attrs 0.9.0.