This repository was archived by the owner on Dec 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd-template.html
78 lines (78 loc) · 2.93 KB
/
md-template.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--
The {page-title} parameters will be replaced with the
document title extracted from the <h1> element or
file name, if there is no <h1> heading
-->
<title>{page-title}[title]</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://code.jquery.com/jquery-1.8.0.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
MathML: {
extensions: ["content-mathml.js"]
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
"content-mathml": {
collapsePlusMinus: true,
cistyles: {
vector: 'bold-italic',
matrix: 'bold-upright'
},
symbols: {
gamma: '\u03B3'
}
},
showProcessingMessages: false,
processEnvironments: true,
preview: ["[math]"],
processEscapes: true,
tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }});
</script>
<script type="text/javascript" src="https://cdn.rawgit.com/mathjax/MathJax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="content/style.css" />
<script src="content/tips.js" type="text/javascript"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row" style="margin-top:30px">
<div class="span1"></div>
<div class="span10" id="main">
[content]
<script>
function onMarkdownUpdate() {
var mathBlocks = document.getElementsByClassName('math');
for (var i = 0; i < mathBlocks.length; i++) {
var htmlText = mathBlocks[i].innerHTML;
try {
var mathText = htmlText
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>');
MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathText]);
}
catch (e) {
mathBlocks[i].innerHTML = htmlText;
}
}
}
onMarkdownUpdate();
</script>
</div>
<div class="span1"></div>
</div>
</div>
</body>
</html>