refactor: Upgrade to Fusebox 2.0
This commit is contained in:
1 parent
3e1c4a086c
commit
3fa941ce19
7 files changed
+76
-23
No files matched your search
@@ -112,10 +112,10 @@ const parseTree = (content) => {
|
||||
let content = ''
|
||||
let anchor = ''
|
||||
if (heading.children && heading.children.length > 0 && heading.children[0].type === 'link_open') {
|
||||
content = removeMarkdown(heading.children[1].content)
|
||||
content = mdRemove(heading.children[1].content)
|
||||
anchor = _.kebabCase(content)
|
||||
} else {
|
||||
content = removeMarkdown(heading.content)
|
||||
content = mdRemove(heading.content)
|
||||
anchor = _.kebabCase(heading.children.reduce((acc, t) => acc + t.content, ''))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user