Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommonMark attribute syntax #22

Open
hektor opened this issue Jun 6, 2022 · 2 comments
Open

CommonMark attribute syntax #22

hektor opened this issue Jun 6, 2022 · 2 comments

Comments

@hektor
Copy link

hektor commented Jun 6, 2022

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 hektor changed the title Feature request: CommonMark attribute syntax CommonMark attribute syntax #feature Jun 6, 2022
@hektor hektor changed the title CommonMark attribute syntax #feature CommonMark attribute syntax Jun 6, 2022
@euclio
Copy link
Owner

euclio commented Jun 14, 2022

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

@hektor
Copy link
Author

hektor commented Jun 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants