Update optional marky-markdown dep to 9.0.1.

This commit is contained in:
John-David Dalton
2016-11-10 13:33:45 -08:00
parent 98720bea4a
commit 8bde34dda0
3 changed files with 115 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
'use strict';
const _ = require('lodash');
const cheerio = require('cheerio');
const fs = require('fs');
const marky = require('marky-markdown');
const path = require('path');
@@ -176,7 +177,7 @@ function build() {
// Uncomment docdown HTML hints.
.replace(/(<)!--\s*|\s*--(>)/g, '$1$2');
const $ = marky(markdown, { 'sanitize': false });
const $ = cheerio.load(marky(markdown, { 'sanitize': false }));
const $header = $('h1').first().remove();
const version = $header.find('span').first().text().trim().slice(1);