Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
68f6aa8c
Commit
68f6aa8c
authored
11 years ago
by
David Baumgold
Browse files
Options
Downloads
Plain Diff
Merge pull request #1404 from edx/db/requirejs-configure-mathjax
Configure MathJax using require.js
parents
fb62f0c5
97941530
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/static/coffee/spec/main.coffee
+14
-2
14 additions, 2 deletions
cms/static/coffee/spec/main.coffee
cms/static/coffee/spec/main_squire.coffee
+14
-2
14 additions, 2 deletions
cms/static/coffee/spec/main_squire.coffee
cms/templates/base.html
+17
-2
17 additions, 2 deletions
cms/templates/base.html
with
45 additions
and
6 deletions
cms/static/coffee/spec/main.coffee
+
14
−
2
View file @
68f6aa8c
...
...
@@ -35,7 +35,7 @@ requirejs.config({
"draggabilly"
:
"xmodule_js/common_static/js/vendor/draggabilly.pkgd"
,
"domReady"
:
"xmodule_js/common_static/js/vendor/domReady"
,
"mathjax"
:
"//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"
,
"mathjax"
:
"//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full
&delayStartupUntil=configured
"
,
"youtube"
:
"//www.youtube.com/player_api?noext"
,
"tender"
:
"//edxedge.tenderapp.com/tender_widget"
...
...
@@ -116,7 +116,19 @@ requirejs.config({
exports
:
"tinymce"
},
"mathjax"
:
{
exports
:
"MathJax"
exports
:
"MathJax"
,
init
:
->
MathJax
.
Hub
.
Config
tex2jax
:
inlineMath
:
[
[
"
\\
("
,
"
\\
)"
],
[
'[mathjaxinline]'
,
'[/mathjaxinline]'
]
]
displayMath
:
[
[
"
\\
["
,
"
\\
]"
],
[
'[mathjax]'
,
'[/mathjax]'
]
]
MathJax
.
Hub
.
Configured
()
},
"xmodule"
:
{
exports
:
"XModule"
...
...
This diff is collapsed.
Click to expand it.
cms/static/coffee/spec/main_squire.coffee
+
14
−
2
View file @
68f6aa8c
...
...
@@ -35,7 +35,7 @@ requirejs.config({
"draggabilly"
:
"xmodule_js/common_static/js/vendor/draggabilly.pkgd"
,
"domReady"
:
"xmodule_js/common_static/js/vendor/domReady"
,
"mathjax"
:
"//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"
,
"mathjax"
:
"//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full
&delayStartupUntil=configured
"
,
"youtube"
:
"//www.youtube.com/player_api?noext"
,
"tender"
:
"//edxedge.tenderapp.com/tender_widget.js"
...
...
@@ -116,7 +116,19 @@ requirejs.config({
exports
:
"tinymce"
},
"mathjax"
:
{
exports
:
"MathJax"
exports
:
"MathJax"
,
init
:
->
MathJax
.
Hub
.
Config
tex2jax
:
inlineMath
:
[
[
"
\\
("
,
"
\\
)"
],
[
'[mathjaxinline]'
,
'[/mathjaxinline]'
]
]
displayMath
:
[
[
"
\\
["
,
"
\\
]"
],
[
'[mathjax]'
,
'[/mathjax]'
]
]
MathJax
.
Hub
.
Configured
();
},
"xmodule"
:
{
exports
:
"XModule"
...
...
This diff is collapsed.
Click to expand it.
cms/templates/base.html
+
17
−
2
View file @
68f6aa8c
...
...
@@ -71,7 +71,7 @@ var require = {
// externally hosted files
"
tender
"
:
"
//edxedge.tenderapp.com/tender_widget
"
,
"
mathjax
"
:
"
//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full
"
,
"
mathjax
"
:
"
//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full
&delayStartupUntil=configured
"
,
// youtube URL does not end in ".js". We add "?noext" to the path so
// that require.js adds the ".js" to the query component of the URL,
// and leaves the path component intact.
...
...
@@ -159,7 +159,22 @@ var require = {
exports
:
"
tinymce
"
},
"
mathjax
"
:
{
exports
:
"
MathJax
"
exports
:
"
MathJax
"
,
init
:
function
()
{
MathJax
.
Hub
.
Config
({
tex2jax
:
{
inlineMath
:
[
[
"
\\
(
"
,
"
\\
)
"
],
[
'
[mathjaxinline]
'
,
'
[/mathjaxinline]
'
]
],
displayMath
:
[
[
"
\\
[
"
,
"
\\
]
"
],
[
'
[mathjax]
'
,
'
[/mathjax]
'
]
]
}
});
MathJax
.
Hub
.
Configured
();
}
},
"
xblock/core
"
:
{
exports
:
"
XBlock
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment