AI Implementation feature(849): Landing Page and Login/Register Modal 1.00 (#12)
This commit was merged in pull request #12.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
||||
import { renderMarkdownToHtml } from './markdown.pure';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class MarkdownService {
|
||||
constructor(private readonly sanitizer: DomSanitizer) {}
|
||||
|
||||
render(md: string | null | undefined): SafeHtml {
|
||||
return this.sanitizer.bypassSecurityTrustHtml(renderMarkdownToHtml(md));
|
||||
render(md: string | null | undefined): string {
|
||||
return renderMarkdownToHtml(md);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user