ngx-markdown
Version:
Angular library that uses marked to parse markdown to html combined with Prism.js for synthax highlights
17 lines (16 loc) • 607 B
TypeScript
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
import { MarkdownService } from './markdown.service';
export declare class MarkdownComponent implements AfterViewInit {
element: ElementRef;
markdownService: MarkdownService;
private _data;
private _src;
private readonly _isTranscluded;
data: string;
src: string;
error: EventEmitter<string>;
load: EventEmitter<string>;
constructor(element: ElementRef, markdownService: MarkdownService);
ngAfterViewInit(): void;
render(markdown: string, decodeHtml?: boolean): void;
}