s4

changeset 486:44b4a45e2617

Emphasizing pattherns like *word* should have surrounding spaces.
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 06 Feb 2018 11:16:54 +0900
parents 021e7943fd99
children b17bdc798dc5
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Tue Feb 06 11:06:10 2018 +0900
     1.2 +++ b/s4-funcs.sh	Tue Feb 06 11:16:54 2018 +0900
     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 '