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
64e558e5
Commit
64e558e5
authored
Sep 09, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments
parent
a4190bfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+4
-1
No files found.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
64e558e5
...
@@ -310,6 +310,9 @@ class @Problem
...
@@ -310,6 +310,9 @@ class @Problem
'R3' --> 'R_{3}'
'R3' --> 'R_{3}'
'vGS' --> 'v_{GS}'
'vGS' --> 'v_{GS}'
'K/2*(vIN-VT)^2' --> 'K/2*(v_{IN}-V_{T})^2'
'K/2*(vIN-VT)^2' --> 'K/2*(v_{IN}-V_{T})^2'
... and also escape specific 6.002x-related keywords from MathJax,
such as 'in' (parsed by MathJax as the set symbol)
###
###
# Default keywords are taken from capa/calc.py
# Default keywords are taken from capa/calc.py
...
@@ -318,7 +321,7 @@ class @Problem
...
@@ -318,7 +321,7 @@ class @Problem
# Escape keywords are strings that have special meaning in 6.002x that should not be processed by Jax
# Escape keywords are strings that have special meaning in 6.002x that should not be processed by Jax
escape_keywords
=
[
'in'
]
escape_keywords
=
[
'in'
]
# First, perform subscript insertion
# First, perform subscript insertion
, but watch out for keywords
replace_subscript
=
(
match
)
->
replace_subscript
=
(
match
)
->
if
match
in
default_keywords
or
match
in
escape_keywords
if
match
in
default_keywords
or
match
in
escape_keywords
return
match
return
match
...
...
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