mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
update marked to latest version
This commit is contained in:
committed by
Keagan McClelland
parent
574539faec
commit
90281dbbd7
@@ -1,12 +1,12 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core'
|
||||
import * as marked from 'marked'
|
||||
import { marked } from 'marked'
|
||||
import * as DOMPurify from 'dompurify'
|
||||
|
||||
@Pipe({
|
||||
name: 'markdown',
|
||||
})
|
||||
export class MarkdownPipe implements PipeTransform {
|
||||
transform (value: any): any {
|
||||
transform(value: any): any {
|
||||
if (value && value.length > 0) {
|
||||
const html = marked(value)
|
||||
const sanitized = DOMPurify.sanitize(html)
|
||||
|
||||
Reference in New Issue
Block a user