はてなブログでMarkdown Discount Extentionをやってみるテスト

PHP Markdown Extraのテストに続いて、はてなブログDiscountのMarkDowm Extentionのテストをしてみます。

・こう書くと、

->this is a test<-

・こうなる。

this is a test

・こう書くと、

![hatena](http://www.hatena.ne.jp/images/hatenaportal/common/logo@2x.png =450x10)

・こうなる。

hatena

・こう書くと、

=hey!=
    This is a definition list
=tag1=
=tag2=
    data.

・こうなる。

hey!
This is a definition list
tag1
tag2
data.

・こう書くと、

tag1
: data

・こうなる。

tag1 : data

PHP Markdown Extraの記法には対応していません。

・こう書くと、

b. first item
c. second item

・こうなる。

  1. first item
  2. second item

・こう書くと、

[abbr][]  

[abbr]: abbr:abbreviation

・こうなる。

abbr

SmartyPants変換

ついでに、SmartyPants変換も見てみます。

`` text '' is translated to “texts”.
"double-quoted text" becomes “double-quoted text”
'single-quoted text' becomes ‘single-quoted text’
don't is “don’t ” as well as anything-else’t. (But foo'tbar is just foo'tbar.)
And it's is “it’s,” as well as anything-else’s (except not foo'sbar and the like.)
(tm) becomes ™
(r) becomes ®
(c) becomes ©
1/4th ? ¼th. Ditto for 1/4 (¼), 1/2 (½), 3/4ths (¾ths), and 3/4 (¾).
... becomes …
. . . also becomes …
--- becomes —
-- becomes –
A^B becomes AB. Complex superscripts can be enclosed in ()s, so A^(B+2) becomes AB+2.