How can I center a image in md on HedgeDoc

Hi all, I want to centering a image in markdown on my HedgeDoc instance, how can I do it?
Thanks for any comment.

Hey @q18,

welcome to the community forum.

This can only be done by inserting HTML into you markdown document. For example you could insert the following into your HedgeDoc Instance

<div style='display: flex; justify-content: center;'>
    <img src='/icons/android-chrome-192x192.png'>
</div>

Should look like this

Just replace the part in src with the URL of your image.

Thank you very much!

1 Like