-
I've been using markdown-it and markdown-it-attrs to render Markdown but it has a very large bundle size. I started writing an extension for micromark to handle attributes similarly but I'm not sure it's possible. [Link to example website](example.com){data-attribute="something"} Given that a link's attributes are hard-coded, is it impossible to create an extension to support the above syntax? |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Jan 13, 2021
Replies: 1 comment 4 replies
-
I generally believe adding extensions is a bad thing. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
gregives
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I generally believe adding extensions is a bad thing.
Directives are somewhat standardized: https://github.com/micromark/micromark-extension-directive. Most parsers support them. Could you use those?