UNPKG

ng2-markdown-to-html

Version:

Angular 2+ library that uses marked to parse markdown to html combined with Prism.js for synthax highlights

13 lines (12 loc) 480 B
import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { ErrorObservable } from 'rxjs/observable/ErrorObservable'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; export declare class MarkdownToHtmlService { private http; constructor(http: Http); getSource(src: string): Observable<any>; extractData(response: Response): string; handleError(error: Response | any): ErrorObservable; }