Markdownテスト

Markdownテスト

Markdown形式に対応したらしいのでテスト。

  • hoge
  • fuga

Code Highlighting

コードのハイライトは github と同じ方式が使える。

```python
import os
def hoge(x, y):
  return x + y

print(hoge(100, 200))
```
import os
def hoge(x, y):
  return x + y

print(hoge(100, 200))

github の gist も簡単に貼り付けられる。

[gist:6bd03f74699cf42b6a27]

……が、Markdown形式だと gist 記法使えないっぽいorz

はてな記法

はてなフォトライフ記法で画像埋め込み

[f:id:tomoemon:20110210013821j:image:w200]

サイドバーからはてなフォトライフの画像埋め込み

こんなHTMLが自動的に挿入されるけどこのやり方だと表示サイズを変えるのちょっと面倒くさい

<p><span itemscope itemtype="http://schema.org/Photograph"><img src="http://cdn-ak.f.st-hatena.com/images/fotolife/t/tomoemon/20101006/20101006013241.jpg" alt="f:id:tomoemon:20101006013241j:plain" title="f:id:tomoemon:20101006013241j:plain" class="hatena-fotolife" itemprop="image"></span></p>

f:id:tomoemon:20101006013241j:plain

ちょっと難はあるけど、悪くないね。

参考

はてなブログで「Markdown記法一覧」を書いてみるテスト - そっと、はてなブログ