🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

markdown-it-prism-zhc

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-it-prism-zhc

Highlights code blocks in markdown-it using Prism.

latest
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

markdown-it-prism Build Status Dependency Status npm version Bower version

markdown-it plugin to highlight code blocks using Prism

Usage

const md = require('markdown-it')();
const prism = require('markdown-it-prism');

md.use(prism, options);

Options

The options object may contain:

NameDescriptionDefault
pluginsArray of Prism Plugins to load. The names to use can be found here. Please note that some prism plugins (notably line-numbers) rely on the DOM being present and can thus not be used with this package (see #1).[]
initA function called after setting up prism. Will receive the prism instance as only argument. Useful for plugins needing further intialisation.() => {}

Keywords

markdown-it

FAQs

Package last updated on 16 Jan 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