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
88242c2e
Commit
88242c2e
authored
Jul 26, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unnecessary/commented out lines
parent
ad1773c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
67 deletions
+0
-67
lms/static/coffee/src/customwmd.coffee
+0
-67
No files found.
lms/static/coffee/src/customwmd.coffee
View file @
88242c2e
...
...
@@ -27,19 +27,6 @@ $ ->
(?!`)
///gm
###HUB.Queue ->
console
.
log
"initializing"
renderReady
=
true
HUB
.
processUpdateTime
=
50
HUB
.
Config
"HTML-CSS"
:
EqnChunk
:
10
EqnChunkFactor
:
1
SVG
:
EqnChunk
:
10
EqnChunkFactor
:
1
###
@
processMath
:
(
start
,
last
,
preProcess
)
=>
block
=
blocks
.
slice
(
start
,
last
+
1
).
join
(
""
).
replace
(
/&/g
,
"&"
)
.
replace
(
/</g
,
"<"
)
...
...
@@ -112,60 +99,6 @@ $ ->
math
=
null
text
@updateMathJax: =>
HUB.Queue(["Typeset", HUB, "wmd-preview"])
###
if
not
HUB
.
Cancel
?
#and 1 == 2
HUB
.
cancelTypeset
=
false
CANCELMESSAGE
=
"MathJax Canceled"
HOOKS
=
[
{
name
:
"HTML-CSS Jax Config"
engine
:
->
window
[
"MathJax"
].
OutputJax
[
"HTML-CSS"
]
},
{
name
:
"SVG Jax Config"
engine
:
->
window
[
"MathJax"
].
OutputJax
[
"SVG"
]
},
{
name
:
"TeX Jax Config"
engine
:
->
window
[
"MathJax"
].
InputJax
.
TeX
},
]
for
hook
in
HOOKS
do
(
hook
)
->
HUB
.
Register
.
StartupHook
hook
.
name
,
->
engine
=
hook
.
engine
()
engine
.
Augment
Translate
:
(
script
,
state
)
->
console
.
log
"translating"
if
HUB
.
cancelTypeset
or
state
.
cancelled
throw
Error
(
CANCELMESSAGE
)
engine
.
Translate
.
call
(
engine
,
script
,
state
)
prevProcessError
=
HUB
.
processError
HUB
.
processError
=
(
error
,
state
,
type
)
->
if
error
.
message
!=
CANCELMESSAGE
return
prevProcessError
.
call
(
HUB
,
error
,
state
,
type
)
else
console
.
log
"handling message"
MathJax
.
Message
.
Clear
(
0
,
0
)
state
.
jaxIds
=
[]
state
.
jax
=
{}
state
.
scripts
=
[]
state
.
i
=
state
.
j
=
0
state
.
cancelled
=
true
return
null
HUB
.
Cancel
=
->
this
.
cancelTypeset
=
true
###
if
Markdown
?
converter
=
Markdown
.
getSanitizingConverter
()
editor
=
new
Markdown
.
Editor
(
converter
)
...
...
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