pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Add image class to HTML figure. Closes #3928.

Open madgen opened this issue 7 years ago • 2 comments

Add the class attribute associated with the image to the enclosing figure with a -figure suffix as suggested by @mb21. Closes #3928.

Example input:

![a](b){.myClass1 .myClass2 #id}

HTML output without the change:

<figure>
<img src="b" alt="a" id="id" class="myClass1 myClass2" /><figcaption>a</figcaption>
</figure>

HTML output with the change:

<figure class="myClass1-figure myClass2-figure">
<img src="b" alt="a" id="id" class="myClass1 myClass2" /><figcaption>a</figcaption>
</figure>

madgen avatar Jan 16 '18 13:01 madgen