s4
diff s4-blog.sh @ 946:420ad90116e6
MathJax preview initial version
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 26 Oct 2021 13:16:29 +0900 |
parents | 5d70fa029f8d |
children | b8ce08814228 |
line diff
1.1 --- a/s4-blog.sh Mon Oct 25 18:39:44 2021 +0900 1.2 +++ b/s4-blog.sh Tue Oct 26 13:16:29 2021 +0900 1.3 @@ -270,7 +270,7 @@ 1.4 ;; 1.5 esac 1.6 fi 1.7 - href4="${blog_math:+Math} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>" 1.8 + href4="${blog_math:+<span id=\"mathjax\">Math</span>} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>" 1.9 $isgrpadmin && 1.10 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>" 1.11 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state 1.12 @@ -417,7 +417,7 @@ 1.13 echo "時間をおいてください(Visit later please)." | html p 1.14 return 1.15 fi 1.16 - echo "${blog_math:+$mathjax}" 1.17 + printf '%s' "${blog_math:+$mathjax}" 1.18 echo '<table class="blog_replies"> <!-- blog:blog_showentry() main table -->' 1.19 # If, nLimit = 50 1.20 # show article:1, hide(2, 3), show(4, ...)