s4
diff s4-funcs.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 | 4099e5a30e27 |
line diff
1.1 --- a/s4-funcs.sh Mon Oct 25 18:39:44 2021 +0900 1.2 +++ b/s4-funcs.sh Tue Oct 26 13:16:29 2021 +0900 1.3 @@ -3502,6 +3502,7 @@ 1.4 owner=`getvalbyid blog owner $blogrowid` 1.5 title=`getvalbyid blog title $blogrowid` 1.6 author=`getvalbyid article author $rowid` 1.7 + math=`getvalbyid blog mathjax $blogrowid` 1.8 ## err EDITart: owner=$owner, author=$author 1.9 if isgrpowner "$user" "$owner"; then 1.10 : EDIT OK 1.11 @@ -3514,7 +3515,7 @@ 1.12 GF_ACTION="?replyblog+$blogrowid#$aid" \ 1.13 edittable $formdir/article.def article $rowid \ 1.14 > $tmpout 1.15 - rm -f /tmp/editart.out 1.16 + printf '%s' "${math:+$mathjax}" >> $tmpout 1.17 # Cannot use pipelining to m4 with genform() because of stdin stack 1.18 _m4 -D_TITLE_="コメントの修正" -D_DIARY_="" \ 1.19 -D_FORM_="syscmd(cat $tmpout)" \