New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

markdown-node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-node

Lightweight Markdown parser module for Node.js

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Markdown Parser

Basic markdown parser module for Node.js.

Usage

Main exported function is parser. It has the following signature:

function parser(markup: string): string;

where markup is a Markdown to be parsed.

Return value is an HTML markup converted from Markdown.

Example

const parser = require('./lib/parser');

const data =
  '# Header\n' +
  'Here is some text.\n' +
  'This is the second sentence.\n' +
  '\n' +
  'This is the second paragraph.';
const output = parser(data);

console.log(output);

Bugs

If you find any bug, please report it at https://github.com/paper-lark/markdown-node/issues.

License

Markdown Parser is available under the terms of the MIT License. See LICENSE for more.

FAQs

Package last updated on 28 Mar 2018

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