Tuesday, March 11, 2014

Testing Markdown with StackEdit for Blogger

在 StackEdit 上以 Markdown 撰寫文章,再 publish 至 blogger 的筆記!
Written with StackEdit.
參考 How I use Markdown for Posting to BlogspotHow to use Markdown to edit Blogger posts

1. Heading and Emphasis

##這是 h2
###這是 h3
斜體字
粗體字
斜粗體字

2. List

  1. Unordered
    • The first point.
  2. Ordered
    2.1. The first point.
    2.2. The second point.

3. Blockquoe

It is no accident that in America today the gap between the very rich
and everyone else is wider than at any time since the Gilded Age. Now,
as then, the titans are seeking an even greater political voice to
match their economic power. Now, as then, the inevitable danger is
that they will confuse their own self-interest with the common good.
The irony of the political rise of the plutocrats is that, like
Venice’s oligarchs, they threaten the system that created them.

4. Sample Code

/*ClientConfig config = new DefaultClientConfig();
Client client = Client.create(config); 
WebResource service = client.resource(Configure.getProperty("SMSSTVGwURL")); */

//限制 privacy 只能 1 ~ 3,超出範圍則設定為 1 對所有人公開
int privacyInt = Integer.parseInt(privacy); 
if(privacyInt < 1 || privacyInt > 3)
    privacy = "1"; 

5. Tables

A Table Example
Item Description Unit
Price
Quantity Total
Widget The latest widget model $3.01 100 $301.00

6. Embedded Link

Markdown 語法教學

7. Image

Resized version.

Markdown version.
Admission Letter

8. Footnote

這裡是一個 footnote 1

  1. footnote 說明

No comments: