From f64268f9cd88bbac3153cc8f5bc637244cd814c1 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Mon, 27 Mar 2023 00:29:58 +1000 Subject: [PATCH] Fix anchor ext to use a blank space by default so it can be more easily styled with CSS --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index bcfad66..03aa1ba 100644 --- a/main.go +++ b/main.go @@ -90,7 +90,7 @@ var Extensions = map[string]goldmark.Extender{ chromahtml.WithLineNumbers(true), ), ), - "anchor": &anchor.Extender{}, + "anchor": &anchor.Extender{Texter: anchor.Text(" ")}, "d2": &d2.Extender{}, "embed": embed.New(), "fences": &fences.Extender{}, -- 2.43.0