How to use the lowlight/lib/core.js.highlightAuto function in lowlight

To help you get started, we’ve selected a few lowlight examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wooorm / emphasize / lib / core.js View on Github external
'use strict'

var chalk = require('chalk')
var lowlight = require('lowlight/lib/core.js')

var high = lowlight.highlight
var auto = lowlight.highlightAuto

// Inherit.
function Lowlight() {}

Lowlight.prototype = lowlight

var emphasize = new Lowlight()

// Expose.
module.exports = emphasize

emphasize.highlight = highlight
emphasize.highlightAuto = highlightAuto

// Default style sheet.
var defaultSheet = {