aboutsummaryrefslogtreecommitdiffstats
path: root/gemtext2html.awk
diff options
context:
space:
mode:
authorsejo <sejo@texto-plano.xyz>2021-05-20 16:06:33 -0500
committersejo <sejo@texto-plano.xyz>2021-05-20 16:06:33 -0500
commite6d54f976e313e149e5f3688d4db3c23cfb5adf5 (patch)
tree398348e1aecb824df89620c3f084c5b7487e690b /gemtext2html.awk
parenteda062e6192566b821b0b0e5f51d5c66e29fb6bc (diff)
downloadsitio-e6d54f976e313e149e5f3688d4db3c23cfb5adf5.tar.gz
& para incluir líneas gemtext
Diffstat (limited to 'gemtext2html.awk')
-rw-r--r--gemtext2html.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/gemtext2html.awk b/gemtext2html.awk
index c7e5fdc..0fa9326 100644
--- a/gemtext2html.awk
+++ b/gemtext2html.awk
@@ -83,11 +83,15 @@ NR == 1{
/^\+/{ # include literal
- sub("^+","",$0) # elimina el +
+ sub(/^+ /,"",$0) # elimina el +
appendContenido( $0 )
next
}
+/^&/{ # include literal gemtext
+ next
+}
+
/^[[:blank:]]*$/ { # línea vacía
if( !modo_pre ) {
if( modo_lista ){ # cierra la lista
Un proyecto texto-plano.xyz