Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
498e62ef
Commit
498e62ef
authored
Mar 17, 2015
by
brianhw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7386 from edx/adam/revert-mathjax-change
Revert "Lms should be independent of mathjax"
parents
b50e004b
71ab971c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
32 deletions
+26
-32
common/templates/mathjax_include.html
+26
-31
lms/static/require-config-lms.js
+0
-1
No files found.
common/templates/mathjax_include.html
View file @
498e62ef
...
...
@@ -6,38 +6,33 @@
## This enables ASCIIMathJAX, and is used by js_textbox
<
%
def
name=
"mathjaxConfig()"
>
%if mathjax_mode is not Undefined and mathjax_mode == 'wiki':
MathJax.Hub.Config({
tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]],
displayMath: [ ['$$','$$'], ["\\[","\\]"]]}
});
%else:
MathJax.Hub.Config({
tex2jax: {
inlineMath: [
["\\(","\\)"],
['[mathjaxinline]','[/mathjaxinline]']
],
displayMath: [
["\\[","\\]"],
['[mathjax]','[/mathjax]']
]
}
});
%endif
MathJax.Hub.Configured();
window.HUB = MathJax.Hub;
</
%
def>
%if mathjax_mode is not Undefined and mathjax_mode == 'wiki':
<script
type=
"text/x-mathjax-config"
>
MathJax
.
Hub
.
Config
({
tex2jax
:
{
inlineMath
:
[
[
'$'
,
'$'
],
[
"
\\
("
,
"
\\
)"
]],
displayMath
:
[
[
'$$'
,
'$$'
],
[
"
\\
["
,
"
\\
]"
]]}
});
HUB
=
MathJax
.
Hub
</script>
%else:
<script
type=
"text/x-mathjax-config"
>
MathJax
.
Hub
.
Config
({
tex2jax
:
{
inlineMath
:
[
[
"
\\
("
,
"
\\
)"
],
[
'[mathjaxinline]'
,
'[/mathjaxinline]'
]
],
displayMath
:
[
[
"
\\
["
,
"
\\
]"
],
[
'[mathjax]'
,
'[/mathjax]'
]
]
}
});
HUB
=
MathJax
.
Hub
</script>
%endif
<!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates.
It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of
MathJax extension libraries -->
<script
type=
"text/javascript"
>
;(
function
(
require
)
{
'use strict'
;
require
([
'mathjax'
],
function
()
{
$
{
mathjaxConfig
()}
});
}).
call
(
this
,
require
||
RequireJS
.
require
);
</script>
<script
type=
"text/javascript"
src=
"https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"
></script>
lms/static/require-config-lms.js
View file @
498e62ef
...
...
@@ -67,7 +67,6 @@
"ova"
:
'js/vendor/ova/ova'
,
"catch"
:
'js/vendor/ova/catch/js/catch'
,
"handlebars"
:
'js/vendor/ova/catch/js/handlebars-1.1.2'
,
"mathjax"
:
'https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full'
// end of files needed by OVA
},
shim
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment