repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
7e8e16c
parent
0f1da31
author
Eric Bower
date
2024-03-22 14:51:50 +0000 UTC
chore: change toc to Table of Contents
1 files changed,  +1, -1
M shared/mdparser.go
+1, -1
1@@ -446,7 +446,7 @@ func AstToc(doc ast.Node, src []byte, mtoc int) error {
2 	// generate # toc
3 	heading := ast.NewHeading(2)
4 	heading.SetAttributeString("id", []byte("toc"))
5-	heading.AppendChild(heading, ast.NewString([]byte("toc")))
6+	heading.AppendChild(heading, ast.NewString([]byte("Table of Contents")))
7 
8 	// insert
9 	doc.InsertBefore(doc, doc.FirstChild(), list)