From 9b772d64cc224aa8d87d7c36c612f39963f7f91e Mon Sep 17 00:00:00 2001
From: sejo
Date: Wed, 19 May 2021 20:35:27 -0500
Subject: formatea links externos
---
gemtext2html.awk | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'gemtext2html.awk')
diff --git a/gemtext2html.awk b/gemtext2html.awk
index 02271cf..b4e1db2 100644
--- a/gemtext2html.awk
+++ b/gemtext2html.awk
@@ -111,6 +111,8 @@ $0 !~ /^(=>|```|#{1,3} |* |>|[[:blank:]]*$)/{ # líneas de texto (no "especiales
modo_parrafo = 0
appendContenido( "
" )
}
+ bloque = 1
+
# borra flecha del inicio
sub("^=>","",$0)
# ahora $1 es el path, $2 a $NF el texto
@@ -136,6 +138,9 @@ $0 !~ /^(=>|```|#{1,3} |* |>|[[:blank:]]*$)/{ # líneas de texto (no "especiales
$0=""texto"
"
}
}
+ else{
+ $0=""texto"
"
+ }
}
appendContenido( $0 )
}
--
cgit v1.2.3