LoginSignup
5
4

More than 5 years have passed since last update.

Ubuntuでpandocを使ってMarkdownをRedmineのwikiにする

Posted at

Makrdownで書かれたドキュメントをRedmineのwikiに書きたいけど書きなおすの面倒だなーと思っていたらpandocというCLIがあり、便利だったのでメモ

参考

環境

  • Ubuntu 14.04 LTS

インストール

$sudo apt-get install pandoc

変換してみる

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

(オプション)標準出力からクリップボードでコピーする

CLIから標準出力の内容をクリップボードでコピーする。

Macのpbcopyをubuntuでも使う

# Ubuntuではxselというパッケージを使う
$sudo apt-get install xsel

# こんな感じでコピーできる
$cat markdown.textile | xsel --clipboard --input

長いので~/.bahsrcにaliasを書いておくと簡単に使える

$alias pbcopy='xsel --clipboard --input'
5
4
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
5
4