Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- 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,^### *\(.*\),<h3>\1</h3>," \ -e "s,^## *\(.*\),<h2>\1</h2>," \ -e 's,^----*$,<hr>,' \ - -e 's,\*\*\([^* |][^*|]*[^ |]\)\*\*,<strong>\1</strong>,g' \ - -e 's,__\([^_ |][^_]*[^ ]\)__,<strong>\1</strong>,g' \ - -e 's,\*\([^* |][^*|]*[^ |]\)\*,<em>\1</em>,g' \ - -e 's,_\([^_ ][^_]*[^ ]\)_,<em>\1</em>,g' + -e 's, \*\*\([^* |][^*|]*[^ |]\)\*\* ,<strong>\1</strong>,g' \ + -e 's, __\([^_ |][^_]*[^ ]\)__ ,<strong>\1</strong>,g' \ + -e 's, \*\([^* |][^*|]*[^ |]\)\* ,<em>\1</em>,g' \ + -e 's, _\([^_ ][^_]*[^ ]\)_ ,<em>\1</em>,g' } minitbl() { sed -n '