UNPKG

914 BTypeScriptView Raw
1import { ElementRef, NgZone, PipeTransform, ViewContainerRef } from '@angular/core';
2import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3import { MarkdownService, ParseOptions, RenderOptions } from './markdown.service';
4import * as i0 from "@angular/core";
5export type MarkdownPipeOptions = ParseOptions & RenderOptions;
6export declare class MarkdownPipe implements PipeTransform {
7 private domSanitizer;
8 private elementRef;
9 private markdownService;
10 private viewContainerRef;
11 private zone;
12 constructor(domSanitizer: DomSanitizer, elementRef: ElementRef<HTMLElement>, markdownService: MarkdownService, viewContainerRef: ViewContainerRef, zone: NgZone);
13 transform(value: string, options?: MarkdownPipeOptions): Promise<SafeHtml>;
14 static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownPipe, never>;
15 static ɵpipe: i0.ɵɵPipeDeclaration<MarkdownPipe, "markdown", true>;
16}