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:
2026-07-21 18:46:14 +00:00
parent 685a8bca84
commit cd97e40030
8 changed files with 88 additions and 365 deletions
@@ -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"