aurelius icon indicating copy to clipboard operation
aurelius copied to clipboard

CommonMark attribute syntax

Open hektor opened this issue 2 years ago • 2 comments

Not sure if this is the place to make this request, but I thought it could be useful to have the syntax provided by the CommonMark AttributesExtension available.

I am not sure if pulldown-cmark already supports this (they do support attributes on headings).

I frequently use this on images and currently vim-markdown-composer does not handle this kind of syntax. E.g. when adding a class attribute to an image: ![](img/image_2022-06-05-16-47-34.png){.invert}. The attribute part is currently rendered as the string "{.invert}".

hektor avatar Jun 06 '22 10:06 hektor

Yep, we're limited by pulldown-cmark here. For vim-markdown-composer you could try using an external renderer that does have support, though: https://github.com/euclio/vim-markdown-composer/blob/5b79f425ebd28216d9aa472be3ba07cda41d9b24/doc/markdown-composer.txt#L31

euclio avatar Jun 14 '22 22:06 euclio

Thank you. I settled with pandoc for now, but it is noticeably slower.

hektor avatar Jun 14 '22 23:06 hektor