a-blogにmarkdownを実装しました


a-blog に markdown という表記で書ける機能を実装してみた。


と言っても、説明にも書いてあるように


IN YOUR OWN PROGRAMS

You can use PHP Markdown easily in your current PHP program. Simply include the file and then call the Markdown function on the text you want to convert:

include_once "markdown.php";
$my_html = Markdown($my_text);

ほぼ、こんな感じ。表示させる際に、読み込んでMarkdownを呼ぶだけ。 一般の記事表示と、RSS出力時(一度HTMLに変換してからタグを消したりしている)にも使うようにした。


最新記事

カテゴリー

アーカイブ

ハッシュタグ