LoginSignup
63
62

More than 5 years have passed since last update.

pandocでmarkdownからredmineのwiki文法に変換する

Last updated at Posted at 2013-04-17

kobitoさんを使い始めてからmarkdownが使いやすくredmineのwiki文法に嫌気が刺したので変換できないか探してたらpandocに出会った

環境

  • macosx10.8
  • yosemite

参考にしたサイト

pandocとは?

Haskell製のMarkdownをHTMLやLaTeXに変換できるPandocのインストールとサンプルから引用

Haskell製のドキュメントコンバータ。markdownをhtmlにしたりLaTeXにしたりっていうことができるやつ。変換できる形式が多い。便利だ。

インストール

brew install ghc cabal-install
cabal update
cabal install pandoc

PATHを通す

pandocをインストールすると
$HOME/.cabal/binにpandocがあるので.zshrcにPATHを通す

~/.zshrc
PATH=${HOME}/.cabal/bin:$PATH

反映

source ~/.zshrc
#又は
source ~/.bashrc

変換

これでいける

pandoc -s -S markdown.md -t textile -o markdown.textile

なんでhaskellのインストールってあんなにかかるんだろう。。。

63
62
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
63
62