-
Sorry to necro a thread, but the old one seemed to die... On this page if I use a url with an anchor tag, you'll see it go to the right place, then get pushed away as all the images and video load in after the text: https://tokeru.com/cgwiki/HoudiniDops.html#rbd_follow_targets One of the answers in the older github discussion implied there should be a vite plugin to deal with this. I tried mesure media but it didn't seem to help with vitepress. I think I installed it correctly:
The build process goes without errors, but suspiciously fast. When I preview and inspect an image tag, I can see that the images don't have any width or height attribs. Would love to get an answer to this! Vitepress is incredible, but the jumping when using anchors is a bit distracting. If I had say 20 images I'd just go in and add the required attribs by hand, but I have hundreds of images and video on these pages... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try one of these - https://github.com/boyum/markdown-it-image-size or https://github.com/ulfschneider/markdown-it-fitmedia You need to add them via markdown.config |
Beta Was this translation helpful? Give feedback.
Try one of these - https://github.com/boyum/markdown-it-image-size or https://github.com/ulfschneider/markdown-it-fitmedia
You need to add them via markdown.config