Skip to content

How to make remark-directive work with img? #1216

Answered by ChristianMurphy
edward1127 asked this question in Q&A
Discussion options

You must be logged in to vote

@edward1127 welcome!
You are asking two separate questions here.
https://github.com/micromark/micromark-extension-directive#syntax has examples of directive syntax, you are welcome to make an image directive.
The example you shared is not a directive so it will not work in remark directive.


What you show in your example is attributes syntax, which has no standard.
There are some plugins you could look into:

These attributes plugins are not standardized though, so, you milage may vary.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edward1127
Comment options

Answer selected by edward1127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants