html-from-md
Version:
A simple TypeScript library that formats Markdown and returns a formatted HTML.
17 lines • 433 B
TypeScript
export type Options = {
maxChars?: number;
removeImages?: boolean;
keepSections?: string[];
excludeSections?: string[];
gfm?: boolean;
useImgAltText?: boolean;
};
export type ReadmeFormatResult = {
html: string;
links: {
title: string;
url: string;
}[];
};
export declare function formatMarkdown(raw: string, opts?: Options): ReadmeFormatResult;
//# sourceMappingURL=index.d.ts.map