UNPKG

ngx-md

Version:

[![Build Status][cirrus-ci-badge]][cirrus-ci-badge-url] [![npm][circleci-badge-url]][circleci-url] [![version][npm-badge-url]][npm-url] [![npm][license-badge-url]][license-url] [![npm][opencollective]][opencollective] [![FOSSA Status](https://app.fossa.io

21 lines (20 loc) 786 B
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Renderer } from 'marked'; import { DomSanitizer } from '@angular/platform-browser'; import * as i0 from "@angular/core"; export declare class NgxMdService { private _http; private _domSanitizer; private _renderer; constructor(_http: HttpClient, _domSanitizer: DomSanitizer); getContent(path: string): Observable<any>; get renderer(): Renderer; extractData(res: any): string; setMarkedOptions(options: any): void; compile(data: string, sanitize?: boolean): string | null; private handleError; private extendRenderer; static ɵfac: i0.ɵɵFactoryDeclaration<NgxMdService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgxMdService>; }