s4

changeset 425:961173fdc904

# at the beginning of the line turns to <h2>...</h2>
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 13 Apr 2017 18:07:11 +0859
parents c250bc6da8ad
children b3b33923638c
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Mon Apr 10 22:32:14 2017 +0859
     1.2 +++ b/s4-funcs.sh	Thu Apr 13 18:07:11 2017 +0859
     1.3 @@ -473,7 +473,10 @@
     1.4        -e "s|{{\($_hrefptn\)\|\(.*\)}}|<img src=\"\1\" width=\"\2\">|g" \
     1.5        -e "s|{{\($_hrefptn\)}}|<img src=\"\1\">|g"\
     1.6        -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \
     1.7 -      -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|"
     1.8 +      -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|" \
     1.9 +      -e "s,^### *\(.*\),<h4>\1</h4>," \
    1.10 +      -e "s,^## *\(.*\),<h3>\1</h3>," \
    1.11 +      -e "s,^# *\(.*\),<h2>\1</h2>,"
    1.12  }
    1.13  minitbl() {
    1.14    sed -n '