Markdown imports to Medium, done right :) `
$ npm install -g matium or yarn global add matium
- Get a third party integration token on medium
- Get a personal access tokens on Github with Gist
- Create an markdown article and add all metadata needed
- Run
matium ./article.md --medium-token myMediumToken --gist-token myGistToken
Usage: matium <files ...> [options]
Options:
-V, --version output the version number
-m, --medium-token [token] Third party integration token on medium, stored after first use
-g, --gist-token [token] Gist authentication token, stored after first use
-h, --help output usage information
Use YAML
matter in your markdown to specify all the metadata:
---
title: 'A title'
publication: 'a medium publication name'
canonicalUrl: 'a canonical url'
tags:
- tag 1
- tag 2
license: 'public-domain'
gists:
- gist id created 1
- gist id created 2
---
The gists metadata is autogenerated with all gist id created
License options:
all-rights-reserved
cc-40-by
cc-40-by-nd
cc-40-by-sa
cc-40-by-nc
cc-40-by-nc-nd
cc-40-by-nc-sa
cc-40-zero
public-domain