aboutsummaryrefslogtreecommitdiffstats
path: root/gemtext2html.awk
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-05-19 19:25:35 -0500
committersejo <sejo@texto-plano.xyz>2021-05-19 19:25:35 -0500
commit99ea11896dc7871d18dea1c29d2b9882dc23bfde (patch)
tree07e45220c9da0a952f721d8daeaff85d6072cff6 /gemtext2html.awk
parent7d9e6528b245e2918c9f2481f25ad1e631472394 (diff)
downloadsitio-99ea11896dc7871d18dea1c29d2b9882dc23bfde.tar.gz
agrega h1 a nav
Diffstat (limited to 'gemtext2html.awk')
-rw-r--r--gemtext2html.awk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gemtext2html.awk b/gemtext2html.awk
index f6f259c..43da533 100644
--- a/gemtext2html.awk
+++ b/gemtext2html.awk
@@ -165,6 +165,7 @@ $0 !~ /^(=>|```|#{1,3} |* |>|[[:blank:]]*$)/{ # líneas de texto (no "especiales
sub("$","",$0) #sufijo
bloque = 1
}
+ appendNav( "<li><a href='#"$0"'>"$0"</a></li>" )
appendContenido( "<h1 id='"$0"'>"$0"</h1>" )
}
Un proyecto texto-plano.xyz