feat: Landing Page and Login/Register Modal 1.00
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);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<h1 class="landing-title" data-testid="landing-title">{{ pageTitle() }}</h1>
|
||||
</header>
|
||||
|
||||
<article class="landing-welcome" [innerHTML]="welcomeHtml" data-testid="landing-welcome"></article>
|
||||
<article class="landing-welcome" [innerHTML]="welcomeHtml()" data-testid="landing-welcome"></article>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user