Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ module.exports = function spikeHtmlStandards (options = {}) {
let parserOpt = options.parser || sugarml
if (options.parser === false) parserOpt = undefined

// Always return an object for locals
if (typeof options.locals === 'undefined') options.locals = {}

// If the user has not overridden the default markdown function, initialize
// markdown-it and add the default
let contentOpt = options.content || {}
Expand Down