]> Nishi Git Mirror - aya.git/commitdiff
Fix anchor ext to use a blank space by default so it can be more easily styled with CSS
authorJames Mills <1290234+prologic@users.noreply.github.com>
Sun, 26 Mar 2023 14:29:58 +0000 (00:29 +1000)
committerJames Mills <1290234+prologic@users.noreply.github.com>
Sun, 26 Mar 2023 14:29:58 +0000 (00:29 +1000)
main.go

diff --git a/main.go b/main.go
index bcfad667703353aa93cf76fd3c8607d2c57ed064..03aa1ba9be69470111be5b21a4c1c7a8a275ae96 100644 (file)
--- 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{},