Update markdown-it dependency to 4.0.1, fix breaking changes.

This commit is contained in:
David Anson 2015-03-18 23:14:44 -07:00
parent e305d22cce
commit c764d2798f
4 changed files with 25 additions and 24 deletions

View file

@ -514,7 +514,7 @@ module.exports.doc = function doc(test) {
var inHeading = false;
var rule = null;
md.parse(contents, {}).forEach(function forToken(token) {
if ((token.type === "heading_open") && (token.hLevel === 2)) {
if ((token.type === "heading_open") && (token.tag === "h2")) {
inHeading = true;
} else if (token.type === "heading_close") {
inHeading = false;