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

markdown-it-all

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-all

An integration of markdown-it and plugins.

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

npm version Build Status Coverage Status

markdown-it-all

An integration of markdown-it and plugins.

Install

$ yarn add markdown-it-all

Usage

Simple

import MarkdownIt, { markdownItAll, markdownItCustom } from '../index'

const content = '# markdown-it rulezz!\n'
let md = new MarkdownIt()
let html = md.render(content)
console.log(html)
// '<h1>markdown-it rulezz!</h1>\n'

md = markdownItAll()
html = md.render(content)
console.log(html)
// '<h1 id="markdown-it-rulezz" data-source-line="1"><a class="anchor" href="#markdown-it-rulezz"><span class="octicon octicon-link"></span></a>markdown-it rulezz!</h1>\n'

md = markdownItCustom({sourceMap: true})
html = md.render(content)
console.log(html)
// '<h1 data-source-line="1">markdown-it rulezz!</h1>\n'

Interface

function markdownItCustom (options: ICustomPlugins): MarkdownIt
interface ICustomPlugins {
    abbreviation?: true,
    customContainer?: string[],
    definitionList?: true,
    emoji?: true,
    footnote?: true,
    githubToc?: GithubTocOptions,
    insert?: true,
    latex?: true,
    mark?: true,
    mermaid?: true,
    sourceMap?: true,
    subscript?: true,
    superscript?: true,
    taskList?: true,
}

Plugins

Support List

License

MIT

Keywords

markdown

FAQs

Package last updated on 22 Jul 2019

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