Socket
Socket
Sign inDemoInstall

markdown-it-highlightjs-external

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    markdown-it-highlightjs-external

highlight.js plugin for markdown-it to use external link


Version published
Maintainers
1
Install size
5.03 kB
Created

Readme

Source

markdown-it-highlightjs-external

Preset use highlight.js with markdown-it by external_link You should add hljs external_link for use it. example:

Usage

var md = require('markdown-it')()
var mihe = require('markdown-it-highlightjs-external')
md.use(mihe, {
    hljs: 'auto', // If this set auto, plugin will use window.hljs for highlight.
    highlighted: true, // If this set false, plugin will disabled highlight.
    langCheck: function(lang) {}, // If hljs language parsing file missing, this function will callback.
})

Options

NameDescriptionDefault
hljsThe hljs parsing object. Default to use window.hljsauto
highlightedWhether or not to enable the syntax highlightingtrue
langCheckThis should be function for missing language callbackfunction(lang){}

Keywords

FAQs

Last updated on 12 Dec 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc