From b925bde28fe38c0d29fb53c21bbbe88d747c3879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20V=C4=A9nh=20Thi=E1=BB=87n=20Ph=C3=BAc?= Date: Wed, 25 Dec 2024 11:51:46 +0700 Subject: [PATCH] MARP-1689 Fix Sonar --- .../product/product-detail/product-detail.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts b/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts index b9d5b118..1d64e2e4 100644 --- a/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts +++ b/marketplace-ui/src/app/modules/product/product-detail/product-detail.component.ts @@ -1,7 +1,7 @@ import { CommonModule, NgOptimizedImage } from '@angular/common'; import MarkdownIt from 'markdown-it'; import MarkdownItGitHubAlerts from 'markdown-it-github-alerts'; -import * as MarkdownItEmoji from 'markdown-it-emoji'; +import { full } from 'markdown-it-emoji'; import { Component, ElementRef, @@ -456,7 +456,7 @@ export class ProductDetailComponent { renderGithubAlert(value: string): SafeHtml { const md = MarkdownIt(); md.use(MarkdownItGitHubAlerts); - md.use(MarkdownItEmoji.full || MarkdownItEmoji); // Add emoji support + md.use(full); // Add emoji support const result = md.render(value); return this.sanitizer.bypassSecurityTrustHtml(result); }