diff options
author | Fulton Browne <git@fulton.software> | 2021-05-28 03:51:46 +0000 |
---|---|---|
committer | Fulton Browne <git@fulton.software> | 2021-05-28 03:51:46 +0000 |
commit | 598addf2fe5994c8c237a853a206004163da99f0 (patch) | |
tree | ab9fdbd5c5d6bb8b96916ba7efddb97bbbcfcc2a /gemtohtm | |
parent | 6ad3da3f46c45620da55bee9dc659f6888181572 (diff) | |
download | g9srv-598addf2fe5994c8c237a853a206004163da99f0.tar.gz |
added webblog
Diffstat (limited to 'gemtohtm')
-rw-r--r-- | gemtohtm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gemtohtm b/gemtohtm index 0f0d038..ff85297 100644 --- a/gemtohtm +++ b/gemtohtm @@ -1,5 +1,5 @@ $1 == "#" { print "<h1>", $0, "</h1>"; next} $1 == "##" { print "<h2>", $0, "</h2>"; next} $1 == "###" { print "<h3>", $0, "</h3>"; next} -$1 == "=>" { print "<a href=\"", $2, "\">" substr($0,index($0,$3)), "</a>"; next} -{ print } +$1 == "=>" { print "<a href=\"", $2, "\">" substr($0,index($0,$3)), "</a> <br>"; next} +{ print $0, "<br>" } |