My first guess was to try changing to block = false, then I tried to create a render hook.
Even after reading some threads here I can’t figure out what I am doing wrong, or how to access the Attributes with the render hook. Can someone please point me in the right direction?
Enable custom attribute support for titles and blocks by adding attribute lists inside single curly brackets ( {.myclass class="class1 class2" } ) and placing it after the Markdown element it decorates , on the same line for titles and on a new line directly below for blocks.
I’m not sure where you saw this, but it doesn’t do anything:
[markup.goldmark.parser.attribute]
image = true
Common approaches:
Create a shortcode
Use an image render hook and pass the params as a destination query string
Use an image render hook and pass the params in the image title attribute
In my understanding, an image is a block and not something inline with a paragraph or list. That was I interpreted the documentation as if it were possible to add classes to images.