トップ
新規
一覧
検索
ヘルプ
RSS
ログイン
Marukuの編集
!!! 基本的な使い方 [公式サイトのUsage|http://maruku.rubyforge.org/usage.html]を参考にまとめています。 !! ライブラリとして使う 基本的には[[BlueCloth]]と変わらないが、to_html_documentという新しい変換メソッドがある。 require 'maruku' text = <<MARKDOWN Test Document ============= This is body. MARKDOWN Maruku.new(text).to_html # 通常の変換 Maruku.new(text).to_html_document # 完全なXHTML文書として変換 ! to_htmlの場合の出力 <h1 id='test_document'>Test Document</h1> <p>This is body.</p> ! to_html_documentの場合の出力 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> <html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> <head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>Test Document</title></head> <body> <h1 id='test_document'>Test Document</h1> <p>This is body.</p> </body></html> !! コマンドラインから使う 次のように打ち込むと、file.mdをfile.htmlに変換する。 $ maruku file.md また、次のように打ち込むと、pdflatexコマンドを使ってLaTeX→PDFに変換してから出力する(file.texとfile.pdfができる)。 $ maruku --pdf file.md
タイムスタンプを更新しない
添付ファイル
[
ヘルプ
]
サイトメニュー
インストール
開発環境・エディタ
リファレンスマニュアルの入手
1.8.xから1.9.1への移行
?
有用ライブラリ
有用ツール
ポータル
公式サイト(ruby-lang.org)
RAA
Ruby Forge
Rubyist Magazine
Wiki内検索
キーワード
AND
OR
ページ内容も含める
編集者向け
連絡帳
プラグイン一覧
アクセス情報
Keyword
InterWikiName
Footer
[
edit
]
最近更新されたページ
2018/6/2
vapor
2017/12/29
良質の隠しカメラ
2017/8/17
Louis Vuitto supreme iphone8case
2017/8/16
iPhone8/8 plusケース ブランド マイケルコース 高級 アイフォン8ケース
2017/5/20
純正漢方薬局