LoginSignup
3
2

More than 3 years have passed since last update.

mermaidで書かれた図の形式変換コマンドをdocker imageにまとめた

Last updated at Posted at 2019-03-23

mermaidjsは凄く便利ですね。
大量に図を作った時に、Markdownを一括してpng形式等に変換したいときがあると思います。
公式には「mermaid.cli」という変換コマンドがありまして、これをまとめたDocker imageを作成しました。
(正確には日本語フォントなどの調整。)

[Docker Hub]
mermaid.cli.jp

以下のように一般コマンドみたいに使用する事が出来ます。

コマンド例
docker run --rm -v マウントパス:/local yamada28go/mermaid.cli.jp -i /local/対象ファイル.md -o /local/出力ファイル.png
3
2
1

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