diff --git a/src/core/directives/format-text.ts b/src/core/directives/format-text.ts index f762b426e..b07e5ec39 100644 --- a/src/core/directives/format-text.ts +++ b/src/core/directives/format-text.ts @@ -221,6 +221,10 @@ export class CoreFormatTextDirective implements OnChanges, OnDestroy, AsyncDirec * @param img Image to adapt. */ protected adaptImage(img: HTMLElement): void { + if (img.classList.contains('texrender')) { + return; + } + // Element to wrap the image. const container = document.createElement('span'); const originalWidth = img.attributes.getNamedItem('width');