🖥

An example of #markdown #HTML conversion from standard input / output

2019/04/18に公開

<h1> Dockerfile </h1><pre> <code>FROM ruby RUN gem install reverse_markdown redcarpet</code> </pre><h1> EXE </h1><pre> <code>docker build . -t ruby-gems</code> </pre><pre> <code>$ echo '<h1>hey</h1>' | docker run -i ruby-gems reverse_markdown # hey $ echo "abc" | docker run -i ruby-gems redcarpet <p>abc</p></code> </pre><p> # Maybe badcase </p><pre> <code>$ docker run ruby-gems /bin/bash -c "echo '<h1>head</h1>' | reverse_markdown" # head $ docker run ruby-gems /bin/bash -c "echo '# h1' | redcarpet" <h1>h1</h1></code> </pre><h1> ref </h1><p> <a href="https://docs.docker.com/engine/reference/run/">| Docker Documentation</a> </p>

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/1319

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2019-04-18

Discussion