A python cl utility to convert a markdown file to a usable medium format. All code snippets are replaced either by gist or images generated using carbon.
For example, the following markdown file
is converted into
To use in on medium, just copy and paste the final file from something that shows its rendered version, e.g. GitHub
Clone this repo.
You need python, I've used python 3.9
. Then
pip install .
You can now call
markdowntomedium --help
If you want to use --image-format carbon
, you need to install it. We use it's cli, carbon-now-cli
npm i -g carbon-now-cli
markdowntomedium --help