upstream #1
@ -4,8 +4,8 @@ module.exports = function (options) {
|
|||||||
return (tree) =>
|
return (tree) =>
|
||||||
visit(tree, 'heading', (node, index, parent) => {
|
visit(tree, 'heading', (node, index, parent) => {
|
||||||
options.exportRef.push({
|
options.exportRef.push({
|
||||||
value: node.children[1].value,
|
value: node.children[0].value || node.children[1].value,
|
||||||
url: node.children[0].url,
|
url: node.children[0].url || node.children[1].url,
|
||||||
depth: node.depth,
|
depth: node.depth,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user