This package has been deprecated

Author message:

this package should not be used any more

sfn-markdown-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

SFN-Markdown-Parser

Simple markdown parser for SFN framework.

This module uses marked, highlightjs and comment-meta to parse and render markdown files.

API

namespace MarkdownParser {
    /** Parses markdown contents to HTML. */
    function parse(contents: string): Promise<string>;
    /** Parses a markdown file to HTML. */
    function parseFile(filename: string, encoding = "utf8"): Promise<string>;
    /** Gets the title of a markdown document. */
    function getTitle(content: string): string;
    /** Gets the title of a markdown document. */
    function getFileTitle(filename: string, encoding = "utf8"): Promise<string>
}

Readme

Keywords

Package Sidebar

Install

npm i sfn-markdown-parser

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

11.2 kB

Total Files

8

Last publish

Collaborators

  • ayonli