Merge pull request #181 from Music47ell/master
fix: toc issue with remark-autolink-headings
This commit is contained in:
commit
b0253c2a16
@ -4,8 +4,8 @@ module.exports = function (options) {
|
||||
return (tree) =>
|
||||
visit(tree, 'heading', (node, index, parent) => {
|
||||
options.exportRef.push({
|
||||
value: node.children[1].value,
|
||||
url: node.children[0].url,
|
||||
value: node.children[0].value || node.children[1].value,
|
||||
url: node.children[0].url || node.children[1].url,
|
||||
depth: node.depth,
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user