Skip to content

Commit c4563bf

Browse files
committed
是
1 parent 460174d commit c4563bf

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

‎_includes/themes/twitter/default.html‎

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,30 +71,9 @@
7171
{% include JB/analytics %}
7272
{% include JB/MathJax %}
7373
<script>
74-
function mdupdate() {
75-
var converter = new Showdown.converter();
76-
var tmp = $("#content).html();
77-
alert(tmp);
78-
var tmp2 = tmp.replace(/~~~~\{(.*)\}\n([\s\S]*?)~~~~\n/m, "<pre><code class=\"language-$1\">$2</code></pre>");
79-
80-
while(tmp!=tmp2)
81-
{
82-
83-
tmp = tmp2;
84-
85-
tmp2 = tmp.replace(/~~~~\{(.*)\}\n([\s\S]*?)~~~~\n/m, "<pre><code class=\"language-$1\">$2</code></pre>");
86-
}
87-
tmp = converter.makeHtml(tmp);
88-
$("#content").html(tmp);
89-
Prism.highlightAll();
90-
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "html"]);
91-
}
74+
9275
$(document).ready(function() {
9376
alert("hre");
94-
$("#md").on("keyup", function() {
95-
mdupdate();
96-
});
97-
mdupdate();
9877
});
9978
</script>
10079
</body>

0 commit comments

Comments
 (0)