-
I am in the process of migrating from Hyas to the current version of Thulite. I have been using the normal markdown syntax for adding images as demonstrated in the docs. Previously, the rendered HTML would contain In the new version, there are no class tags in my rendered HTML, leading to huge images. It also seems that the So, is there no built-in way to get fluid images for normal markdown syntax? What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Yes, you're right /that's true (design choice, not well communicated I realize). You would now use the markdown render hook to display "simple" images. Use one of the three shortcodes for full control displaying images (which is not possible /highly opinionated when using a render hook). But, you can always override the render hook and make it your own. |
Beta Was this translation helpful? Give feedback.
-
To get any of the advanced features (like different "srcset" image sizes), I would now use the short codes, right? Looking at the source of the |
Beta Was this translation helpful? Give feedback.
-
I also have a small related question. I would like to use syntax highlighting using markdown code fences. I managed to get styling by generating a However, this syntax highlighting now works using shortcode but not via code fences:
The above documentation from Hugo says that highlighting in code fences is enabled by default. So my question would be: could it be that Thulite kind of overwrites this? How could I activate it? |
Beta Was this translation helpful? Give feedback.
Other option, copy
node_modules/@thulite/images/layouts/_default/_markup/render-image.html
and paste (override) to/layouts/_default/_markup/render-image.html
. Add to the latterclass="{{ site.Params.thulite_images.defaults.class }}"
: