md2poui
Version:
Conversor de arquivos markdown para páginas Angular com suporte ao PO-UI
50 lines (49 loc) • 1.09 kB
TypeScript
import { Renderer } from 'marked';
import { Options } from '../options';
export declare class PoRenderer extends Renderer {
options: Options;
private data;
/**
* @override
*/
code(code: string, language: string): string;
/**
* @override
*/
codespan(code: string): string;
/**
* @override
*/
heading(title: string, level: number): string;
/**
* @override
*/
html(html: string): string;
/**
* @override
*/
list(body: string, ordered: boolean, start: number): string;
/**
* @override
*/
image(href: string, title: string, text: string): string;
/**
* @override
*/
link(href: string, title: string, text: string): string;
/**
* @override
*/
paragraph(text: string): string;
getTitle(): string;
getFiles(): MarkdownFile[];
private escapeCode;
private escapeCodespan;
private addFile;
private adjustTitleToFragment;
private adjustResourceHtml;
}
export type MarkdownFile = {
from: string;
to: string;
};