How to center an image automatically with minimal theme and image auto upload plugin?

Hello there @hqgu . Let me know if this snippet works:

img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
}
    
 .markdown-source-view.mod-cm6 .cm-content > * {
        margin: auto auto !important;
}

This should center images, embeds automagically!

27 Likes