UNPKG

@cisstech/nge

Version:

NG Essentials is a collection of libraries for Angular developers.

35 lines (34 loc) 1.48 kB
import { AfterViewInit, EventEmitter, OnChanges, OnInit } from '@angular/core'; import type { TokensList } from 'marked'; import * as i0 from "@angular/core"; export declare class NgeMarkdownComponent implements OnInit, OnChanges, AfterViewInit { private readonly el; private readonly http; private readonly markdownService; private readonly resourceLoader; private readonly changeDetectorRef; private readonly themes; private readonly contributions; private isDark; /** Link to a markdown file to render. */ file?: string; /** Markdown string to render. */ data?: string; /** Theme to apply to the markdown content. */ theme?: string | null; get klass(): string; /** * An event that emit after each rendering pass * with the list of tokens parsed from the input markdown. */ render: EventEmitter<TokensList>; constructor(); ngOnInit(): void; ngOnChanges(): Promise<void>; ngAfterViewInit(): Promise<void>; private renderFromFile; private renderFromString; private checkTheme; static ɵfac: i0.ɵɵFactoryDeclaration<NgeMarkdownComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgeMarkdownComponent, "nge-markdown, [nge-markdown]", never, { "file": { "alias": "file"; "required": false; }; "data": { "alias": "data"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "render": "render"; }, never, ["*"], false, never>; }