mathjax-rails-3 3.2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.travis.yml +9 -0
  4. data/CHANGELOG.md +14 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +148 -0
  8. data/Rakefile +6 -0
  9. data/lib/mathjax/rails/controllers.rb +23 -0
  10. data/lib/mathjax/rails/helpers.rb +11 -0
  11. data/lib/mathjax/rails/mime_types.rb +3 -0
  12. data/lib/mathjax/rails/routes.rb +10 -0
  13. data/lib/mathjax/rails/version.rb +7 -0
  14. data/lib/mathjax/rails.rb +5 -0
  15. data/lib/mathjax-rails-3.rb +1 -0
  16. data/mathjax-rails-3.gemspec +23 -0
  17. data/vendor/mathjax/.github/FUNDING.yml +2 -0
  18. data/vendor/mathjax/.github/ISSUE_TEMPLATE/bug_report.md +54 -0
  19. data/vendor/mathjax/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  20. data/vendor/mathjax/.gitignore +2 -0
  21. data/vendor/mathjax/.travis.yml +17 -0
  22. data/vendor/mathjax/CONTRIBUTING.md +314 -0
  23. data/vendor/mathjax/LICENSE +202 -0
  24. data/vendor/mathjax/README.md +237 -0
  25. data/vendor/mathjax/bower.json +11 -0
  26. data/vendor/mathjax/composer.json +14 -0
  27. data/vendor/mathjax/es5/a11y/assistive-mml.js +1 -0
  28. data/vendor/mathjax/es5/a11y/complexity.js +1 -0
  29. data/vendor/mathjax/es5/a11y/explorer.js +1 -0
  30. data/vendor/mathjax/es5/a11y/semantic-enrich.js +1 -0
  31. data/vendor/mathjax/es5/a11y/sre.js +1 -0
  32. data/vendor/mathjax/es5/adaptors/liteDOM.js +1 -0
  33. data/vendor/mathjax/es5/core.js +1 -0
  34. data/vendor/mathjax/es5/input/asciimath.js +1 -0
  35. data/vendor/mathjax/es5/input/mml/entities.js +1 -0
  36. data/vendor/mathjax/es5/input/mml/extensions/mml3.js +1 -0
  37. data/vendor/mathjax/es5/input/mml/extensions/mml3.sef.json +1 -0
  38. data/vendor/mathjax/es5/input/mml.js +1 -0
  39. data/vendor/mathjax/es5/input/tex/extensions/action.js +1 -0
  40. data/vendor/mathjax/es5/input/tex/extensions/all-packages.js +34 -0
  41. data/vendor/mathjax/es5/input/tex/extensions/ams.js +1 -0
  42. data/vendor/mathjax/es5/input/tex/extensions/amscd.js +1 -0
  43. data/vendor/mathjax/es5/input/tex/extensions/autoload.js +1 -0
  44. data/vendor/mathjax/es5/input/tex/extensions/bbox.js +1 -0
  45. data/vendor/mathjax/es5/input/tex/extensions/boldsymbol.js +1 -0
  46. data/vendor/mathjax/es5/input/tex/extensions/braket.js +1 -0
  47. data/vendor/mathjax/es5/input/tex/extensions/bussproofs.js +1 -0
  48. data/vendor/mathjax/es5/input/tex/extensions/cancel.js +1 -0
  49. data/vendor/mathjax/es5/input/tex/extensions/cases.js +1 -0
  50. data/vendor/mathjax/es5/input/tex/extensions/centernot.js +1 -0
  51. data/vendor/mathjax/es5/input/tex/extensions/color.js +1 -0
  52. data/vendor/mathjax/es5/input/tex/extensions/colortbl.js +1 -0
  53. data/vendor/mathjax/es5/input/tex/extensions/colorv2.js +1 -0
  54. data/vendor/mathjax/es5/input/tex/extensions/configmacros.js +1 -0
  55. data/vendor/mathjax/es5/input/tex/extensions/empheq.js +1 -0
  56. data/vendor/mathjax/es5/input/tex/extensions/enclose.js +1 -0
  57. data/vendor/mathjax/es5/input/tex/extensions/extpfeil.js +1 -0
  58. data/vendor/mathjax/es5/input/tex/extensions/gensymb.js +1 -0
  59. data/vendor/mathjax/es5/input/tex/extensions/html.js +1 -0
  60. data/vendor/mathjax/es5/input/tex/extensions/mathtools.js +1 -0
  61. data/vendor/mathjax/es5/input/tex/extensions/mhchem.js +34 -0
  62. data/vendor/mathjax/es5/input/tex/extensions/newcommand.js +1 -0
  63. data/vendor/mathjax/es5/input/tex/extensions/noerrors.js +1 -0
  64. data/vendor/mathjax/es5/input/tex/extensions/noundefined.js +1 -0
  65. data/vendor/mathjax/es5/input/tex/extensions/physics.js +1 -0
  66. data/vendor/mathjax/es5/input/tex/extensions/require.js +1 -0
  67. data/vendor/mathjax/es5/input/tex/extensions/setoptions.js +1 -0
  68. data/vendor/mathjax/es5/input/tex/extensions/tagformat.js +1 -0
  69. data/vendor/mathjax/es5/input/tex/extensions/textcomp.js +1 -0
  70. data/vendor/mathjax/es5/input/tex/extensions/textmacros.js +1 -0
  71. data/vendor/mathjax/es5/input/tex/extensions/unicode.js +1 -0
  72. data/vendor/mathjax/es5/input/tex/extensions/upgreek.js +1 -0
  73. data/vendor/mathjax/es5/input/tex/extensions/verb.js +1 -0
  74. data/vendor/mathjax/es5/input/tex-base.js +1 -0
  75. data/vendor/mathjax/es5/input/tex-full.js +34 -0
  76. data/vendor/mathjax/es5/input/tex.js +1 -0
  77. data/vendor/mathjax/es5/latest.js +1 -0
  78. data/vendor/mathjax/es5/loader.js +1 -0
  79. data/vendor/mathjax/es5/mml-chtml.js +1 -0
  80. data/vendor/mathjax/es5/mml-svg.js +1 -0
  81. data/vendor/mathjax/es5/node-main.js +1 -0
  82. data/vendor/mathjax/es5/output/chtml/fonts/tex.js +1 -0
  83. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  84. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  85. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  86. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  87. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  88. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  89. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  90. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  91. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  92. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  93. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  94. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  95. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  96. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  97. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  98. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  99. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  100. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  101. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  102. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  103. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
  104. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
  105. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  106. data/vendor/mathjax/es5/output/chtml.js +1 -0
  107. data/vendor/mathjax/es5/output/svg/fonts/tex.js +1 -0
  108. data/vendor/mathjax/es5/output/svg.js +1 -0
  109. data/vendor/mathjax/es5/sre/mathmaps/base.json +29 -0
  110. data/vendor/mathjax/es5/sre/mathmaps/ca.json +140 -0
  111. data/vendor/mathjax/es5/sre/mathmaps/da.json +140 -0
  112. data/vendor/mathjax/es5/sre/mathmaps/de.json +146 -0
  113. data/vendor/mathjax/es5/sre/mathmaps/en.json +158 -0
  114. data/vendor/mathjax/es5/sre/mathmaps/es.json +140 -0
  115. data/vendor/mathjax/es5/sre/mathmaps/fr.json +146 -0
  116. data/vendor/mathjax/es5/sre/mathmaps/hi.json +146 -0
  117. data/vendor/mathjax/es5/sre/mathmaps/it.json +146 -0
  118. data/vendor/mathjax/es5/sre/mathmaps/nb.json +146 -0
  119. data/vendor/mathjax/es5/sre/mathmaps/nemeth.json +125 -0
  120. data/vendor/mathjax/es5/sre/mathmaps/nn.json +146 -0
  121. data/vendor/mathjax/es5/sre/mathmaps/sv.json +146 -0
  122. data/vendor/mathjax/es5/startup.js +1 -0
  123. data/vendor/mathjax/es5/tex-chtml-full-speech.js +34 -0
  124. data/vendor/mathjax/es5/tex-chtml-full.js +34 -0
  125. data/vendor/mathjax/es5/tex-chtml.js +1 -0
  126. data/vendor/mathjax/es5/tex-mml-chtml.js +1 -0
  127. data/vendor/mathjax/es5/tex-mml-svg.js +1 -0
  128. data/vendor/mathjax/es5/tex-svg-full.js +34 -0
  129. data/vendor/mathjax/es5/tex-svg.js +1 -0
  130. data/vendor/mathjax/es5/ui/lazy.js +1 -0
  131. data/vendor/mathjax/es5/ui/menu.js +1 -0
  132. data/vendor/mathjax/es5/ui/safe.js +1 -0
  133. data/vendor/mathjax/package.json +59 -0
  134. metadata +193 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ed3e86e8309860b45c1b0298b8d2e5c9c7d8a95b275c4eab74cebfb067b7395b
4
+ data.tar.gz: 030a6bb1d97495a30da918285d4e47299417f683d650c356d1812908bdfd2965
5
+ SHA512:
6
+ metadata.gz: d3dfff878c6f7d4933dc1fafc54fb1eaae87e7fcb17ea594a88336592808b2a0e61e0a2b8ad0855b99a8be9c29810d24b5475ad2ec9ae30322757ddbd3f52b12
7
+ data.tar.gz: 5f972011b532495a9d8da8c3722eba3458a63c33c907531bb0be3ae4ef170e17b905a82a9325349ca8f6351066fc63b0834bceb27f0aed8564f0411b96ab20e0
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ .DS_Store
2
+ *.gem
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ before_install:
2
+ - gem install bundler
3
+ language: ruby
4
+ rvm:
5
+ - 2.1.0
6
+ - jruby-19mode
7
+ - rbx
8
+ - ruby-head
9
+ - jruby-head
data/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ ## 30 Jun 2022
2
+ - Updated MathJax version to 3.2.2
3
+
4
+ ## 22 Nov 2019
5
+ - Updated MathJax version to 3.0.0
6
+
7
+ ## 30 Mar 2014
8
+ - Updated MathJax version to 2.3.0
9
+
10
+ ## 21 Nov 2013
11
+ - Added support for Rails 4 apps.
12
+
13
+ ## 1.1a (18 July 2011)
14
+ - Project set up.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mathjax_rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2011-2013 Minqi Pan, Manu S Ajith
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,148 @@
1
+ # MathJax-Rails
2
+
3
+ We are living in an age where displaying math on web pages will never be hard - thanks to the great work of [MathJax](https://github.com/mathjax/MathJax).
4
+
5
+ To quote the description from it's official website,
6
+
7
+ > [MathJax](https://github.com/mathjax/MathJax) is an open source JavaScript display engine for mathematics that works in all modern browsers.
8
+ >
9
+ > No more setup for readers. No more browser plugins. No more font installations… It just works.
10
+
11
+ ## Why bother with another gem?
12
+
13
+ Integrating MathJax into a rails project, however, could be a pain. MathJax is HUGE. It makes your project folder swollen, due to the excessive amount of files contained in this package. Including mathjax inside your developing directory makes your TextMate less responsive; when TextMate loses and then regains focus, it will scan the whole directory structure for changes.
14
+
15
+ Another problem is where to put it? `public` does not seem to be the best practice, since beginning with rails 3.1 `public` is by default ignored in production environment. Plus, it is big; when using git it leaves you no choice but to throw mathjax inside .gitignore, which makes sharing across developers less painless.
16
+
17
+ ## So?
18
+
19
+ This is when mathjax-rails comes into play!
20
+
21
+ * It maintains MathJax as a system-wide directory.
22
+ * By simply including mathjax-rails in your Gemfile, all your rails apps can benefit from MathJax immediately.
23
+ * You can control the version of MathJax through the version of mathjax-rails, which is done simply via bundler.
24
+
25
+ ## Which version of MathJax does it use?
26
+
27
+ We maintain mathjax-rails to always use the latest version of stable MathJax releases.
28
+
29
+ To see the actual version, check the constant Mathjax::Rails::MATHJAXVERSION.
30
+
31
+ ## Usage
32
+
33
+ add this line to your Gemfile:
34
+
35
+ gem 'mathjax-rails'
36
+
37
+ then:
38
+
39
+ $ bundle install
40
+
41
+ ## The other gem
42
+
43
+ The new gem is more recently maintained.Thank you Manu S Ajith.
44
+
45
+ [![Gem Version](https://badge.fury.io/rb/mathjax-rails.png)](http://badge.fury.io/rb/mathjax-rails)
46
+ # MathjaxRails
47
+
48
+ A Ruby gem for including mathjax for Rails 3.x or above apps
49
+
50
+ ## Installation
51
+
52
+ Add this line to your application's Gemfile:
53
+
54
+ gem 'mathjax-rails'
55
+
56
+ And then execute:
57
+
58
+ $ bundle
59
+
60
+ Or install it yourself as:
61
+
62
+ $ gem install mathjax-rails
63
+
64
+ ## Usage
65
+
66
+
67
+ add the following to config/routes.rb (you can change the name of course):
68
+
69
+ ``` ruby
70
+ mathjax 'mathjax'
71
+ ```
72
+
73
+ add the script tag inside app/views/layouts/application.html.erb:
74
+
75
+ ``` rhtml
76
+ <%= mathjax_tag %>
77
+ ```
78
+
79
+ and you're done!
80
+
81
+ To try it, write a simple formula, for example:
82
+
83
+ \[\int_a^b f(x) dx=F(b)-F(a)\]
84
+
85
+ ## Configuration
86
+
87
+ By default, the `tex-chtml-full.js` component is loaded.
88
+
89
+ If you want to load another component file, say `tex-svg-full.js`:
90
+
91
+ ``` rhtml
92
+ <%= mathjax_tag :component => 'tex-svg-full.js' %>
93
+ ```
94
+ Additional configuration can be added directly before mathjax_tag, for example:
95
+
96
+ ``` rhtml
97
+ <script>
98
+ MathJax = {
99
+ tex: {
100
+ inlineMath: [ ['$','$'] ],
101
+ processEscapes: true
102
+ }
103
+ };
104
+ </script>
105
+ <%= mathjax_tag %>
106
+ ```
107
+
108
+ For more options please consult the MathJax documentation.
109
+
110
+ ## What did it do to my rails project?
111
+
112
+ Three simple things: it adds 1 controller `MathjaxRailsController`; 1 helper method `mathjax_tag`; 1 router method `mathjax`.
113
+
114
+ It won't pollute your rails project more than the above three.
115
+
116
+ ## Note
117
+
118
+ If you have a fast CDN service at hand, you don't need this gem.
119
+
120
+ Putting your MathJax at CDN is probably the best choice.
121
+
122
+ By `dmarczal`,
123
+
124
+ To work in rails 3.1 on production environment wih ngnix I just comment the follow line in production.rb
125
+
126
+ ```
127
+ #config/environments/production.rb
128
+ #config.action_dispatch.x_sendfile_header = "X-Sendfile"
129
+ ```
130
+
131
+
132
+
133
+ ## ChangeLog
134
+
135
+ * 2013.11.21
136
+ Added support for Rails 4 apps.
137
+
138
+ * 2011.7.28
139
+ Version 0.0.2 used to fail on Heroku. Now the problem is fixed. I used to use `send_file` without content_type, which causes a failure when deployed to Heroku. Now in version 0.0.3 I use `render :type=>...,` with the appropriate content-type set and the problem is solved.
140
+
141
+
142
+ ## Contributing
143
+
144
+ 1. Fork it
145
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
146
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
147
+ 4. Push to the branch (`git push origin my-new-feature`)
148
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :dummy
3
+
4
+ task :dummy do
5
+ puts "Success"
6
+ end
@@ -0,0 +1,23 @@
1
+ class Mathjax::Rails::MathjaxRailsController < ActionController::Base
2
+ def giveOutStaticFile
3
+ ext = ''
4
+ ext = ".#{params[:format]}" if params[:format]
5
+ filename = params[:uri]+ext
6
+ filepath = "../../../../vendor/#{Mathjax::Rails::DIRNAME}/es5/#{filename}"
7
+
8
+ extname = File.extname(filename)[1..-1]
9
+ mime_type = Mime::Type.lookup_by_extension(extname)
10
+ options = Hash.new
11
+ options[:type] = mime_type.to_s unless mime_type.nil?
12
+ options[:disposition] = 'inline'
13
+ file = File.expand_path(filepath, __FILE__)
14
+ if File.exists?(file)
15
+ send_file file, options
16
+ else
17
+ render :status => 404
18
+ end
19
+ end
20
+
21
+ def verify_authenticity_token
22
+ end
23
+ end
@@ -0,0 +1,11 @@
1
+ module Mathjax
2
+ module Rails
3
+ module ViewHelpers
4
+ def mathjax_tag(opt={})
5
+ opt[:component] ||= 'tex-chtml-full.js'
6
+ "<script src=\"#{mathjax_path(:uri => opt[:component])}\" type=\"text/javascript\"></script>".html_safe
7
+ end
8
+ end
9
+ end
10
+ end
11
+ ActionView::Base.send :include, Mathjax::Rails::ViewHelpers
@@ -0,0 +1,3 @@
1
+ Mime::Type.register "application/vnd.ms-fontobject", :eot
2
+ Mime::Type.register "font/opentype", :otf
3
+ Mime::Type.register "image/svg+xml", :svg
@@ -0,0 +1,10 @@
1
+ module Mathjax
2
+ module Rails
3
+ module RouterMethods
4
+ def mathjax(str)
5
+ match "#{str}/*uri" => "mathjax/rails/mathjax_rails#giveOutStaticFile",:as=>'mathjax', :via => [:get, :post]
6
+ end
7
+ end
8
+ end
9
+ end
10
+ ActionDispatch::Routing::Mapper.send :include,Mathjax::Rails::RouterMethods
@@ -0,0 +1,7 @@
1
+ module Mathjax
2
+ module Rails
3
+ VERSION = '3.2.2.1'
4
+ MATHJAXVERSION = '3.2.2'
5
+ DIRNAME = 'mathjax'
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ require 'mathjax/rails/helpers'
2
+ require 'mathjax/rails/routes'
3
+ require 'mathjax/rails/controllers'
4
+ require 'mathjax/rails/mime_types'
5
+ require 'mathjax/rails/version'
@@ -0,0 +1 @@
1
+ require 'mathjax/rails'
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/mathjax/rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "mathjax-rails-3"
6
+ s.version = Mathjax::Rails::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Adrien Wu", "Minqi Pan", "Manu S Ajith"]
9
+ s.email = ["adrien.sf.wu@gmail.com", "pmq2001@gmail.com", "neo@codingarena.in"]
10
+ s.homepage = "https://github.com/adrien1018/mathjax-rails"
11
+ s.summary = "A simple gem to integrate MathJax with Rails"
12
+ s.description = "This gem maintains MathJax at a system-wide directory."
13
+
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ #s.rubyforge_project = "mathjax-rails"
16
+
17
+ s.add_dependency "railties", ">= 3.0"
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.executables = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
21
+ s.require_path = 'lib'
22
+ s.license = 'MIT'
23
+ end
@@ -0,0 +1,2 @@
1
+ github: [numfocus]
2
+ custom: ['https://numfocus.org/donate-to-mathjax']
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Replace the text below with the details of the issue you are facing.
11
+ DO NOT simply erase the form and type a free-form response.**
12
+ -----
13
+
14
+ ### Issue Summary
15
+
16
+ A summary of the issue and the browser/OS environment in which it occurs. If
17
+ suitable, include the steps required to reproduce the bug.
18
+
19
+ ### Steps to Reproduce:
20
+
21
+ 1. This is the first step
22
+ 2. This is the second step
23
+ 3. Further steps, etc.
24
+
25
+ Any other information you want to share that is relevant to the issue
26
+ being reported. Especially, why do you consider this to be a bug? What
27
+ do you expect to happen instead?
28
+
29
+ ### Technical details:
30
+
31
+ * MathJax Version: 3.2
32
+ * Client OS: (e.g., Mac OS X 10.8.4)
33
+ * Browser: (e.g., Chrome 29.0.1547.57)
34
+
35
+ I am using the following MathJax configuration:
36
+
37
+ ``` js
38
+ MathJax = {
39
+ ...
40
+ };
41
+ ```
42
+
43
+ and loading MathJax via
44
+
45
+ ``` html
46
+ <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
47
+ ```
48
+
49
+ ### Supporting information:
50
+
51
+ * Please supply a link to a (live) minimal example page, when possible.
52
+ * If your issue is with the display of the mathematics produced by MathJax, include a screen snapshot that illustrates the problem, when possible.
53
+ * Check your browser console window for any error messages, and include them here.
54
+ * Include the MathJax configuration you are using, and the script tag that loads MathJax itself.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,2 @@
1
+ .DS_Store
2
+
@@ -0,0 +1,17 @@
1
+ dist: focal
2
+ language: node_js
3
+ node_js:
4
+ - stable
5
+ sudo: false
6
+ script:
7
+ - npm test
8
+ branches:
9
+ only:
10
+ - "/^\\d+\\.\\d+/"
11
+ deploy:
12
+ provider: npm
13
+ email: manager@mathjax.org
14
+ api_key:
15
+ secure: rdvJ27qbw4DZJl49NSf/ybkeHWNWnk2MajS8Y8bMKwI8RaDyEGcAm3frA+CfBw+YHWl71KRJlQHL69YgVwp1nMSzKrGOpwrbL3TMFrFMdBC6tJ30dX1HSvAg9eU5K12E5672MM8qkTwJdYXsvEcyYlzRR+sogR8jTWRl3APuAwY=
16
+ on:
17
+ tags: true