forked from cben/mathdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (105 loc) · 4.86 KB
/
index.html
File metadata and controls
107 lines (105 loc) · 4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!doctype html>
<html>
<head>
<!--
This page is used to render all mathdown documents, using URLs such as
http://mathdown.net/?doc=iYrTultCuy6
See https://github.com/cben/mathdown/issues/6 and
https://github.com/cben/mathdown/issues/10 about security of
having (secret) doc ID in server-visible part of URL.
Currently the doc id is only parsed client-side but that should
change for https://github.com/cben/mathdown/issues/7.
-->
<!--
The ellipsis will be replaced when the firepad content is loaded.
TODO: spin the |\—/ instead?
To Do too: Create a favicon with the ℳ↧ logo and remove from the document’s title.
-->
<title>ℳ↧ ⋯</title>
<meta name="language" content="en">
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Mathdown">
<script src="CodeMirror/lib/codemirror.js"></script>
<script src="CodeMirror/addon/search/searchcursor.js"></script>
<script src="CodeMirror/addon/dialog/dialog.js"></script>
<script src="CodeMirror/addon/search/search.js"></script>
<script src="CodeMirror/mode/markdown/markdown.js"></script>
<script src="CodeMirror/addon/mode/overlay.js"></script>
<script src="CodeMirror/mode/gfm/gfm.js"></script>
<script src="CodeMirror/addon/fold/foldcode.js"></script>
<script src="CodeMirror/addon/fold/foldgutter.js"></script>
<script src="CodeMirror/addon/fold/markdown-fold.js"></script>
<script src="CodeMirror-MathJax/render-math.js"></script>
<script src="firebase/firebase.js"></script>
<script src="firepad/dist/firepad.js"></script>
<link rel="stylesheet" href="css/firepad.css"/>
<link rel="stylesheet" href="css/cm-codemirror.css">
<link rel="stylesheet" href="css/cm-dialog.css">
<link rel="stylesheet" href="css/cm-foldgutter.css">
<link rel="stylesheet" href="css/fonts.css" />
<link rel="stylesheet" href="css/app-header.css" />
<link rel="stylesheet" href="css/app-markdownSyntax.css">
<link rel="stylesheet" href="css/app-typography.css">
<link rel="stylesheet" href="css/app-views.css">
<link rel="stylesheet" href="mathdown.css"/>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
preview: "none"
},
"HTML-CSS": {
// TO DO:
// As we do not want to rely on locally installed fonts, we will always
// load webfonts, hence tell MathJax it should not look for locally
// installed fonts (empty set):
availableFonts: [],
// MathJax’s default fonts are STIX (a Times face). To match Don
// Knuth’s TeX Computer Modern face (which we use for the body text)
// we’ll use Latin-Modern for math, and need to tell MathJax to use
// these instead. (We *must* set a font, since if we would leave the
// value blank, MathJax won’t render anything at all.)
webFont: "Latin-Modern"
// TO DO: loading all fonts and their dozens of respective scripts
// takes way too long; we should probably concatenate these into
// a single, minified, gzipped file.
// MathJax docs: http://docs.mathjax.org/en/v1.1-latest/options/HTML-CSS.html
}
});
</script>
<script src="MathJax/MathJax.js?config=TeX-AMS_HTML-full,Safe"></script>
</head>
<body class="tex2jax_ignore">
<hgroup id="header">
<nav>
<a href="javascript:newPad()" id="new" title="New document"></a>
<a href="?doc=help" target="_blank" id="about" title="About"></a>
<!--a href="?doc=DCJtdsxteYC#Mathdown-Primer" target="_blank" id="primer" title="A Primer on Markdown"></a-->
<a href="?doc=DCJtdsxteYC#Mathdown-Bugs" target="_blank" id="bugs" title="Bug list"></a>
</nav>
<h1>
ℳ↧
<a href="?doc=about" target="_blank" id="logo">
Mathdown.
</a>
<i>
Collaborative markdown + math
</i>
</h1>
<!-- a href="https://github.com/cben/mathdown/issues" class="warning" title="⚠ Alpha quality!">
⚠ Alpha
</a -->
<a href="https://github.com/cben/mathdown/issues" class="forkme" title="⚠ Alpha quality!">
<span class="github"></span> Fork me
</a>
</hgroup>
<form id="content"><textarea id="code" name="code"></textarea></form>
<script src="mathdown.js"></script>
</body>
</html>