Showdown extension for highlightjs


showdown extension for highlightjs.
``ts
// typscript
import * as showdown from 'showdown'
import 'showdown-highlightjs-extension
const converter = new showdown.Converter({ extensions: [ 'highlightjs' ]})
const text = 'Some text with code block (```)'`
const html = converter.makeHtml(text)
`shright after clone
npm install
to exclude dependencies for the global build.Npm Commands
There are a few useful commands you can use during development.
`sh
Run tests (and lint) automatically whenever you save a file.
npm run watchRun tests with coverage stats (but won't fail you if coverage does not meet criteria)
npm run testManually verify the project.
This will be ran during 'npm preversion' so you normally don't need to run this yourself.
npm run verifyBuild the project.
You normally don't need to do this.
npm run buildRun tslint
You normally don't need to do this as
npm run watch and npm version will automatically run lint for you.
npm run lint
`generator-unional@0.1.2`