From ca0548254584bf02889f0a107131a397479a91eb Mon Sep 17 00:00:00 2001 From: sejo Date: Thu, 20 May 2021 23:07:25 -0500 Subject: actualizaciones y tiempo --- gemtext2html.awk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gemtext2html.awk') diff --git a/gemtext2html.awk b/gemtext2html.awk index c1b44a7..714dc9f 100644 --- a/gemtext2html.awk +++ b/gemtext2html.awk @@ -154,14 +154,17 @@ NR == 1{ } appendContenido(""texto"") } - # si el path no es imagen - else{ + # si el path no es imagen y es .gmi + else if( match($1, /gmi$/) ){ # convierte enlace de .gmi a .html ! sub(".gmi$",".html",$1) # crea link appendContenido("

"texto"

") } + else{ + appendContenido("

"texto"

") + } } else{ # link externo appendContenido("

"texto"

") -- cgit v1.2.3