Skip to content

Commit

Permalink
MARP-1689 Fix Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Dec 25, 2024
1 parent eb4a4a9 commit b925bde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b925bde

Please sign in to comment.