upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit 52aaf99dd7 - Show all commits

View File

@ -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,
})
})