2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

markdownをwordに変換するのにPandocが便利だった

Posted at

Pandocとは?

The universal markup converter

https://pandoc.org/
https://github.com/jgm/pandoc
The universal markup converter
Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can convert from

インストール

以下を参考にしてインストールする

https://github.com/jgm/pandoc/blob/master/INSTALL.md

Macの場合

brew install pandoc


## 変換する

```md:README.md
# Test!

This is a test of *pandoc*.

- list one
- list two

コマンド実行してHTMLに変換する

pandoc README.md -f markdown -t html -s -o test1.html

変換したtest1.html

スクリーンショット 2022-02-11 22.22.52.png

コマンド実行してWordに変換する

pandoc README.md -f markdown -t docx -s -o test1.docx

変換したtest1.docx

スクリーンショット 2022-02-11 22.24.49.png

すごい!これはmarkdownでドキュメント作成したくなる。

参考

https://pandoc.org/
https://github.com/jgm/pandoc
https://github.com/jgm/pandoc/blob/master/INSTALL.md

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?