Sign inSign up

atomgraph/markdown

By atomgraph

•Updated over 3 years ago

Python Markdown via Docker

Image
0

303

atomgraph/markdown repository overview

⁠Python Markdown via Docker

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.

⁠Getting It

Available From Docker Hub⁠.

$ docker pull datafolklabs/markdown:latest

⁠Usage

### 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


⁠Example

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>

⁠Extensions

Includes all standard/builtin extension as well as pymdown-extensions⁠:

$ echo /path/to/file.md | datafolklabs/markdown -x pymdownx.github -x extra

⁠Shell Wrapper

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

⁠Future?

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.

Tag summary

Content type

Image

Digest

sha256:106075413…

Size

24.3 MB

Last updated

over 3 years ago

docker pull atomgraph/markdown