-
Hello, I'm reaching out to you because I'm having difficulty working with Hugo and Hextra. I am not an expert in building website and sometimes I find myself really struggling to understand where the issues I have come from : Hugo, or the theme or just something I'm not doing right with markdown. I have a bunch of Docsify md files to migrate to Hugo. I have migrated my .md files and added the configuration needed to integrate it to my Hugo project. I thought it would be enough to get my basic site going. However, things that I expected to be working fine are not, like inline images. in my .md file:
It is displayed like this in the local build: The builded page source code is okay though and I don't know why it displays like this.
(This is the repository: https://github.com/vinnciane/api-kp) I've looked everywhere on the internet and found other people having the issue. Some answers pointed at being an issue with markdown usage. I've found this discussion describing the behaviour I expected. I've looked into the hextra sample site, other sites from the showcase to find a similar situation but found none. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @vinnciane img {
display: inline-block;
}
.content :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) {
margin-top: 0;
margin-bottom: 0;
} The most important part is to change the |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your help ! |
Beta Was this translation helpful? Give feedback.
Hi @vinnciane
can you try override the default CSS style for the
<img>
tag with the custom CSS rules documented here: https://imfing.github.io/hextra/docs/advanced/customization/#custom-cssThe most important part is to change the
img
to beinline-block
so they will be displayed next to your texts.