Skip to content

Commit c609330

Browse files
committed
MOBILE-4616 format-text: Avoid image treatment if it comes form tex
1 parent 48f7346 commit c609330

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/directives/format-text.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ export class CoreFormatTextDirective implements OnChanges, OnDestroy, AsyncDirec
221221
* @param img Image to adapt.
222222
*/
223223
protected adaptImage(img: HTMLElement): void {
224+
if (img.classList.contains('texrender')) {
225+
return;
226+
}
227+
224228
// Element to wrap the image.
225229
const container = document.createElement('span');
226230
const originalWidth = img.attributes.getNamedItem('width');

0 commit comments

Comments
 (0)