From 6357e2efe9237c57eb0afc26ea1501736f39f635 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Sun, 9 Jan 2022 02:16:09 +0500 Subject: [PATCH] Fix top bar links updating Fixes #126 --- cfg/header_links.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/header_links.go b/cfg/header_links.go index 0645e40..603a765 100644 --- a/cfg/header_links.go +++ b/cfg/header_links.go @@ -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) {