🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

marked-wi

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked-wi

A markdown parser built for speed

latest
Source
npmnpm
Version
0.3.6
Version published
Maintainers
1
Created
Source

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).

Keywords

markdown

FAQs

Package last updated on 02 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts