s4
diff s4-funcs.sh @ 488:9f5b08b205bf
Allow numeric argument for day(s)/week(s)/month(s)/year(s)
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 15 Feb 2018 12:24:39 +0859 |
parents | 021e7943fd99 |
children | 075897fee2c0 |
line diff
1.1 --- a/s4-funcs.sh Tue Feb 06 11:06:10 2018 +0900 1.2 +++ b/s4-funcs.sh Thu Feb 15 12:24:39 2018 +0859 1.3 @@ -490,10 +490,10 @@ 1.4 -e "s,^### *\(.*\),<h3>\1</h3>," \ 1.5 -e "s,^## *\(.*\),<h2>\1</h2>," \ 1.6 -e 's,^----*$,<hr>,' \ 1.7 - -e 's,\*\*\([^* |][^*|]*[^ |]\)\*\*,<strong>\1</strong>,g' \ 1.8 - -e 's,__\([^_ |][^_]*[^ ]\)__,<strong>\1</strong>,g' \ 1.9 - -e 's,\*\([^* |][^*|]*[^ |]\)\*,<em>\1</em>,g' \ 1.10 - -e 's,_\([^_ ][^_]*[^ ]\)_,<em>\1</em>,g' 1.11 + -e 's, \*\*\([^* |][^*|]*[^ |]\)\*\* ,<strong>\1</strong>,g' \ 1.12 + -e 's, __\([^_ |][^_]*[^ ]\)__ ,<strong>\1</strong>,g' \ 1.13 + -e 's, \*\([^* |][^*|]*[^ |]\)\* ,<em>\1</em>,g' \ 1.14 + -e 's, _\([^_ ][^_]*[^ ]\)_ ,<em>\1</em>,g' 1.15 } 1.16 minitbl() { 1.17 sed -n '