UNPKG

@rero/ng-core

Version:

RERO angular core library.

19 lines (18 loc) 633 B
import { PipeTransform } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import * as i0 from "@angular/core"; /** * Pipe to transform markdown to html. */ export declare class MarkdownPipe implements PipeTransform { protected sanitizer: DomSanitizer; /** * Transform markdown to HTML. * * @param value Markdown initial value. * @returns HTML corresponding to markdown. */ transform(value: string): SafeHtml; static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<MarkdownPipe, "markdown", false>; }