From 6ad3da3f46c45620da55bee9dc659f6888181572 Mon Sep 17 00:00:00 2001 From: Fulton Browne Date: Fri, 28 May 2021 03:10:01 +0000 Subject: added a gemtext to html converter --- gemtohtm | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gemtohtm diff --git a/gemtohtm b/gemtohtm new file mode 100644 index 0000000..0f0d038 --- /dev/null +++ b/gemtohtm @@ -0,0 +1,5 @@ +$1 == "#" { print "

", $0, "

"; next} +$1 == "##" { print "

", $0, "

"; next} +$1 == "###" { print "

", $0, "

"; next} +$1 == "=>" { print "" substr($0,index($0,$3)), ""; next} +{ print } -- cgit 1.4.1-2-gfad0