# HG changeset patch # User HIROSE Yuuji # Date 1517883414 -32400 # Node ID 44b4a45e2617aeb05327bd16721957fc73e08bec # Parent 021e7943fd99366afcf4a131683d41b7849ce791 Emphasizing pattherns like *word* should have surrounding spaces. diff -r 021e7943fd99 -r 44b4a45e2617 s4-funcs.sh --- a/s4-funcs.sh Tue Feb 06 11:06:10 2018 +0900 +++ b/s4-funcs.sh Tue Feb 06 11:16:54 2018 +0900 @@ -490,10 +490,10 @@ -e "s,^### *\(.*\),

\1

," \ -e "s,^## *\(.*\),

\1

," \ -e 's,^----*$,
,' \ - -e 's,\*\*\([^* |][^*|]*[^ |]\)\*\*,\1,g' \ - -e 's,__\([^_ |][^_]*[^ ]\)__,\1,g' \ - -e 's,\*\([^* |][^*|]*[^ |]\)\*,\1,g' \ - -e 's,_\([^_ ][^_]*[^ ]\)_,\1,g' + -e 's, \*\*\([^* |][^*|]*[^ |]\)\*\* ,\1,g' \ + -e 's, __\([^_ |][^_]*[^ ]\)__ ,\1,g' \ + -e 's, \*\([^* |][^*|]*[^ |]\)\* ,\1,g' \ + -e 's, _\([^_ ][^_]*[^ ]\)_ ,\1,g' } minitbl() { sed -n '