Skip to content

Commit

Permalink
Merge a7fddc6 into 57f70d9
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] committed Dec 8, 2020
2 parents 57f70d9 + a7fddc6 commit d732a90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/toc_obj.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const parseHtml = html => {
return handler.dom;
};

const getId = ({ attribs, parent }) => {
const getId = ({ attribs = {}, parent }) => {
return attribs.id || (!parent ? '' : getId(parent));
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"cross-spawn": "^7.0.0",
"deepmerge": "^4.2.2",
"highlight.js": "^10.0.0",
"htmlparser2": "^4.0.0",
"htmlparser2": "^6.0.0",
"prismjs": "^1.17.1",
"strip-indent": "^3.0.0"
},
Expand Down

0 comments on commit d732a90

Please sign in to comment.