~chambln/gemini.cosine.blue

d9c486f3641f850239cf08b532947cb1277d99bf — Gregory Chamberlain 23 days ago e22a7b1
Pull updated gemtext.awk script from upstream
1 files changed, 3 insertions(+), 3 deletions(-)

M gemtext/gemtext.awk
M gemtext/gemtext.awk => gemtext/gemtext.awk +3 -3
@@ 1,7 1,7 @@
#!/usr/bin/awk -f

/^```/ { pre = (pre + 1) % 2; next }
pre { $0 = "    \033[32m" $0 }
! pre { sub("^##?#?", "&\033[1m") || sub("^>", "&\033[33m") || sub("^\*", "•") }
! pre && sub("^=>", "") { $1 = "[" ++i "] \033[4m\033[34m" $1 "\033[m" }
pre { $0 = "\033[3m\033[32m" $0 }
!pre {sub("^##?#?", "&\033[1m") || sub("^>", "&\033[33m") || sub("^\\*", "•")}
!pre && sub("^=>", "") { $1 = "[" ++i "] \033[4m\033[34m" $1 "\033[m" }
{ print $0 "\033[m" }