Skip to content

Commit 2dc9c52

Browse files
committed
是
1 parent a7509ce commit 2dc9c52

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

‎_includes/themes/twitter/post.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h1>{{ page.title }} {% if page.tagline %}<small>{{page.tagline}}</small>{% endi
5454

5555
var tmp = $("#md").html();
5656
alert(tmp);
57-
var reg=new RegExp(/<pre><code>\n?\/\/(.*)\n([\s\S]*?)<\/code><\/pre>\n/m);
57+
var reg=new RegExp(/<pre><code>\n?\/\/\{(.*)\}\n([\s\S]*?)<\/code><\/pre>\n/m);
5858
var tmp2 = tmp.replace(reg, "<pre><code class=\"language-$1\">$2</code></pre>");
5959
alert(tmp2);
6060
while(tmp!=tmp2)

‎_posts/2014-05-23-md测试.md‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,29 @@ $\sqrt[3]{1+\sqrt[4]{1+\sqrt[4]{1+\sqrt{x}}}}$
2727

2828
[Google](http://google.com)
2929

30-
//java
30+
//{java}
3131
public static void main(String[]args)
3232
{
3333
//注释
3434
System.out.println("你好");
3535
}
3636

37-
~~~{python}
38-
print 'hello world'
39-
~~~
37+
//{python}
38+
print 'hello world'
39+
4040
test `test`
4141

4242

4343

4444

4545

4646

47-
---code---{java}
48-
public static void main(String[]args)
49-
{
50-
//注释
51-
System.out.println("你好");
52-
}
53-
---code---
47+
//{java}
48+
public static void main(String[]args)
49+
{
50+
//注释
51+
System.out.println("你好");
52+
}
5453

5554
~~{java}
5655
public static void main(String[]args)

0 commit comments

Comments
 (0)