mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
* fix Tor logs actually fetching od logs * chore: update to Angular 18 * chore: update to Angular 19 * bump patchDB * chore: update Angular * chore: fix setup-wizard success page * chore: fix * chore: fix * chore: fix * chore: fix --------- Co-authored-by: Matt Hill <mattnine@protonmail.com> Co-authored-by: Aiden McClelland <me@drbonez.dev>
12 lines
258 B
TypeScript
12 lines
258 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core'
|
|
import { marked } from 'marked'
|
|
|
|
@Pipe({
|
|
name: 'markdown',
|
|
})
|
|
export class MarkdownPipe implements PipeTransform {
|
|
transform(value: string): string {
|
|
return value?.length ? marked(value) : ''
|
|
}
|
|
}
|