/usr/share/tdiary/contrib/plugin/mathjax.rb is in tdiary-contrib 5.0.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # -*- coding: utf-8 -*-
# mathjax.rb $Revision: $
#
# MathJaxを使った数式表示のためのプラグイン
#
# MathJaxでTeXやMathMLを使った数式を埋め込むことができます。
#
# MathJaxについては、http://www.mathjax.org/ を参照のこと
#
# Copyright (C) 2014 by Yuh Ohmura <http://yutopia.pussycat.jp/diary/>
#
=begin ChangeLog
2017-06-05 Yuh Ohmura
* Modity MathJax address.
2014-12-17 Yuh Ohmura
* created.
=end
add_header_proc do
'<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [[\'$\',\'$\'], ["\\\\(","\\\\)"]],
processEscapes: true
}
}
);
</script>
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML">
</script>'
end
|