diff --git a/lib/markup.js b/lib/markup.js index 148d0cc..87151c0 100644 --- a/lib/markup.js +++ b/lib/markup.js @@ -36,6 +36,11 @@ function replaceDescriptionFor(items) { } function highlight(description) { + if (description) { + description = description.replace(/&#(\d+);/g, function(match, dec) { + return String.fromCharCode(dec) + }) + } let markedup = removeHLJSPrefix(marked(description)) let $ = cheerio.load(markedup) diff --git a/package.json b/package.json index 8b41d18..3fcd464 100644 --- a/package.json +++ b/package.json @@ -62,10 +62,5 @@ }, "cacheDirectories": [ "tmp" - ], - "husky": { - "hooks": { - "pre-commit": "pretty-quick --staged" - } - } + ] }