Centering images in the post 1.12.4 era

I (LLM) recently just reconfigured Bold + Italics to centering blocks

/* bold + italics to centered */
.markdown-source-view.mod-cm6.is-live-preview {
  /* If a line contains bold+italic text, center the whole line */
  .cm-line:has(.cm-strong.cm-em:not(.cm-formatting)) {
    text-align: center;
  }
  /* Remove bold + italic styling */
  .cm-strong.cm-em:not(.cm-formatting),
  .cm-strong .cm-em:not(.cm-formatting),
  .cm-em .cm-strong:not(.cm-formatting) {
    font-style: inherit !important;
    font-weight: inherit !important;
  }
}