UNPKG

ngx-markdown-it

Version:

An Angular library that renders markdown using [markdown-it](https://github.com/markdown-it/markdown-it).

16 lines (15 loc) 585 B
import { NgxMarkdownItConfig } from "./ngx-markdown-it-config.class"; import * as i0 from "@angular/core"; export declare class NgxMarkdownItService { private markdownIt; constructor(config?: NgxMarkdownItConfig); /** * Renders a markdown string to HTML * * @param {string} markdown Markdown string that you want to render. * @returns {string} */ render(markdown: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<NgxMarkdownItService, [{ optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<NgxMarkdownItService>; }