mw

marked-wi

A markdown parser and compiler. Built for speed.

Showing:

Popularity

Downloads/wk

4

GitHub Stars

0

Maintenance

Last Commit

7yrs ago

Contributors

35

Package

Dependencies

0

Size (min+gzip)

5.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

marked-wi

A full-featured markdown parser and compiler, written in JavaScript. Built for speed.

This fork of marked is a slower version of the originial as it exposes the inline code stuff to the lexer.

Install

npm install marked-wi --save

Usage

var data = document.querySelector('pre').innerHTML;
var Lexer = marked.Lexer;
var Parser = marked.Parser;

console.log(
    Parser.parse(
      Lexer.lex(data)));

Parser.parse() returns an object just like Lexer.lex() but with the inline stuff that it found with the InlineLexer (notice that the Parser in the original marked would return the rendered text, which is completly different from what we are doing here).

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100