1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-11 21:10:26 +00:00

Fix top bar links updating

Fixes #126
This commit is contained in:
Timur Ismagilov 2022-01-09 02:16:09 +05:00
parent e2d206c25a
commit 6357e2efe9

View File

@ -22,6 +22,7 @@ func SetDefaultHeaderLinks() {
// ParseHeaderLinks extracts all rocketlinks from the given text and saves them as header links.
func ParseHeaderLinks(text string) {
HeaderLinks = []HeaderLink{}
ctx, _ := mycocontext.ContextFromStringInput("", text)
// We call for side-effects
_ = mycomarkup.BlockTree(ctx, func(block blocks.Block) {