This is a simple Docker implementation of the Python Markdown library/utility. It's purpose is to make it easy to generate HTML from Markdown files via Docker.
Available From Docker Hub.
$ docker pull datafolklabs/markdown:latest
### via stdin
$ echo /path/to/file.md | docker run -i datafolklabs/markdown
### mount volume as /data and render file(s)
$ docker run -it -v /path/to/data:/data datafolklabs/markdown file.md
From this repo...
$ cat example/test.md | docker run -i datafolklabs/markdown
<h1>Header 1</h1>
<h2>Header 2</h2>
<p>Testing: </p>
<ol>
<li><em>One</em></li>
<li><strong>Two</strong></li>
<li><code>Three</code> </li>
</ol>
Includes all standard/builtin extension as well as pymdown-extensions:
$ echo /path/to/file.md | datafolklabs/markdown -x pymdownx.github -x extra
Download/copy/modify the included bin/markdown shell wrapper to /usr/local/bin/markdown on your system (or elsewhere) for easier use:
$ cat /path/to/file | markdown
If this thing gets any interest, I'll be happy to take it to the next level of development and implement any feature request that come in.
Content type
Image
Digest
sha256:106075413…
Size
24.3 MB
Last updated
over 3 years ago
docker pull atomgraph/markdown