0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pandoc + Docker で word ファイルから markdown 形式のファイルを作成しよう!

Posted at

github などでもおなじみのmarkdown記法便利ですよね
ちゃんと使ってますか?

今回はmd変換が得意なツールのpandocを初めて使用したので覚え書きです

使用法

早速ですが使用法です

$ docker run --rm -v ${PWD}:/data pandoc/core sample.docx -o sample.md

--rm: 実行後にコンテナを削除

意味

-v ${PWD}:/data: 現在の作業ディレクトリを /data にマウント

pandoc/core: pandoc Dockerイメージ

sample.docx: 変換元の Word ファイル

sample.md: 変換後の Markdown ファイル

おまけ

xml形式に出力も可能です

docker run --rm -v ${PWD}:/data pandoc/core sample.docx -t docbook -o sample.xml
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?