about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xlht2
1 files changed, 1 insertions, 1 deletions
diff --git a/lht b/lht index 771fcad..247acf9 100755 --- a/lht +++ b/lht
@@ -2,4 +2,4 @@
2function s(t,i){while(match($0,t)){if(I[ni]==i)ni-=sub(t,"</"i">") 2function s(t,i){while(match($0,t)){if(I[ni]==i)ni-=sub(t,"</"i">")
3else if(sub(t,"<"i">"))I[++ni]=i}}BEGIN{FS="\n"; RS="";ni=0} 3else if(sub(t,"<"i">"))I[++ni]=i}}BEGIN{FS="\n"; RS="";ni=0}
4{s("[\\*_]{2}","strong");s("[\\*_]","em");s("`","code") 4{s("[\\*_]{2}","strong");s("[\\*_]","em");s("`","code")
5$0=(match($0,/>$/))?$0:"<p>"$0"</p>";print} 5$0=(match($0,/^<.*>$/))?$0:"<p>"$0"</p>";print}