Skip to content

Commit 945a29d

Browse files
committed
是
1 parent 09a52b1 commit 945a29d

1 file changed

Lines changed: 2 additions & 26 deletions

File tree

‎_includes/themes/twitter/page.html‎

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,5 @@ <h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% e
77
{{ content }}
88
</div>
99
</div>
10-
<script>
11-
function mdupdate() {
12-
var converter = new Showdown.converter();
13-
var tmp = $("#md").val();
14-
var tmp2 = tmp.replace(/~~~~\{(.*)\}\n([\s\S]*?)~~~~\n/m, "<pre><code class=\"language-$1\">$2</code></pre>");
15-
16-
while(tmp!=tmp2)
17-
{
18-
19-
tmp = tmp2;
20-
21-
tmp2 = tmp.replace(/~~~~\{(.*)\}\n([\s\S]*?)~~~~\n/m, "<pre><code class=\"language-$1\">$2</code></pre>");
22-
}
23-
tmp = converter.makeHtml(tmp);
24-
$("#html").html(tmp);
25-
Prism.highlightAll();
26-
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "html"]);
27-
}
28-
$(document).ready(function() {
29-
alert("hre");
30-
$("#md").on("keyup", function() {
31-
mdupdate();
32-
});
33-
mdupdate();
34-
});
35-
</script>
10+
11+

0 commit comments

Comments
 (0)