Since the update allowing for image resizing, the below CSS to centre images on screen does not work as expected. Behaviour is unchanged in Reading mode, but fails in Live Preview.
is affecting internal image embeds now; previously it was only an issue for external image embeds in live preview.
So you could add a snippet of
.markdown-source-view.mod-cm6 .cm-content > * {
margin: 0 auto !important;
}
but that will center all images in live preview. One option is using a cssclass to only center images in a note with that cssclass (both live preview and reading view)
Thank you so much for that. The centre all option works excellently for my purposes.
Just to make it a little clearer for anyone else reading this, for the centre all option, remove the `.centre` or else the formatting applies to a css class, I presume?