0.1.0 • Published 4 years ago

markdown-it-highlight-i v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

markdown-it-highlight-i npm version

Preset to use highlight.js with markdown-it for interactive markdown only.

Usage

const md = require('markdown-it')()
  .use(require('markdown-it-highlight-i'), opts)

// All code blocks will be highlighted unless it is playable block.

The opts object can contain:

NameDescriptionDefault
autoWhether to automatically detect language if not specified.true
codeWhether to add the hljs class to raw code blocks (not fenced blocks).true

Thanks Original markdown-it-highlightjs