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 wrap: on
line diff
--- a/s4-funcs.sh	Mon Apr 10 22:32:14 2017 +0859
+++ b/s4-funcs.sh	Thu Apr 13 18:07:11 2017 +0859
@@ -473,7 +473,10 @@
       -e "s|{{\($_hrefptn\)\|\(.*\)}}|<img src=\"\1\" width=\"\2\">|g" \
       -e "s|{{\($_hrefptn\)}}|<img src=\"\1\">|g"\
       -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \
-      -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|"
+      -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|" \
+      -e "s,^### *\(.*\),<h4>\1</h4>," \
+      -e "s,^## *\(.*\),<h3>\1</h3>," \
+      -e "s,^# *\(.*\),<h2>\1</h2>,"
 }
 minitbl() {
   sed -n '

yatex.org