File: mathjax.rb

package info (click to toggle)
tdiary-contrib 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,772 kB
  • sloc: ruby: 17,305; javascript: 8,263; lisp: 562; xml: 451; php: 61; sql: 40; makefile: 18
file content (30 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (5)
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