# HG changeset patch # User HIROSE Yuuji # Date 1517882770 -32400 # Node ID 021e7943fd99366afcf4a131683d41b7849ce791 # Parent 66189fcd8c0cbaed22f5cf8717acf32ef268303b Emphasis pattern *word*, _word_ and strong pattern **word**, __word__ diff -r 66189fcd8c0c -r 021e7943fd99 examples/common/default/default.css --- a/examples/common/default/default.css Fri Feb 02 10:09:49 2018 +0900 +++ b/examples/common/default/default.css Tue Feb 06 11:06:10 2018 +0900 @@ -110,6 +110,8 @@ /* text-shadow: blue 0px 1px; */ } td.repl hr {margin-bottom: -1em;} +td.repl em {color: #a00; text-decoration: underline} +td.repl strong {color: white; background: #00a; padding: 0 0.5ex;} td.repl h2:before {content: "■"; color: #a22;} td.repl h3:before {content: "◆"; color: #a22;} td.repl h4:before {content: "○";} diff -r 66189fcd8c0c -r 021e7943fd99 s4-funcs.sh --- a/s4-funcs.sh Fri Feb 02 10:09:49 2018 +0900 +++ b/s4-funcs.sh Tue Feb 06 11:06:10 2018 +0900 @@ -468,6 +468,12 @@ # {{URL|width}} - # {{{URL}} } - # {{{URL|height}} - + # Other Style + # ---- -
(In the beginning of line) + # *Word* - Word + # _Word_ - Word + # **Word** - Word + # __Word__ - Word _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=@!]*" _hrefptn="[A-Za-z0-9/~%+?=@!.][^][()<> ]*" # URL should start with ASCII sed -e "s|\[\[\#\([0-9][0-9]*\)\]\]|#\1|g" \ @@ -483,7 +489,11 @@ -e "s,^#### *\(.*\),

\1

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

\1

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

\1

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