{"id":41097319,"url":"https://github.com/giuliov/markdown2medium","last_synced_at":"2026-01-22T14:59:43.907Z","repository":{"id":83233453,"uuid":"266855386","full_name":"giuliov/markdown2medium","owner":"giuliov","description":"Inspired by cjoudrey/md2medium","archived":false,"fork":false,"pushed_at":"2020-06-01T15:01:05.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T12:14:17.163Z","etag":null,"topics":["hugo","markdown","medium"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giuliov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-25T18:45:22.000Z","updated_at":"2020-06-01T14:55:15.000Z","dependencies_parsed_at":"2023-03-02T19:15:46.926Z","dependency_job_id":null,"html_url":"https://github.com/giuliov/markdown2medium","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/giuliov/markdown2medium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliov%2Fmarkdown2medium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliov%2Fmarkdown2medium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliov%2Fmarkdown2medium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliov%2Fmarkdown2medium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giuliov","download_url":"https://codeload.github.com/giuliov/markdown2medium/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliov%2Fmarkdown2medium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hugo","markdown","medium"],"created_at":"2026-01-22T14:59:43.241Z","updated_at":"2026-01-22T14:59:43.899Z","avatar_url":"https://github.com/giuliov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![build](https://github.com/giuliov/markdown2medium/workflows/build/badge.svg)\n\n# markdown2medium\nInspired by cjoudrey/md2medium, I want a simple way to re-publish in Medium some Markdown posts written for Hugo.\nThis tool uploads a single post to Medium.\n\n\n## Prerequisites\n\nAn Integration Token from Medium. Go to **Settings**, then **Integration tokens**.\n\n![Integration Token menu](doc/images/2020-05-31_143223.png)\n\nType something mnemonic, like _markdown2medium_ and click on **Get integration token**.\n\n![Get integration token](doc/images/2020-05-31_143613.png)\n\nThe integration token is now available until you explicitly revoke it.\n\n![Integration Token and Revoke button](doc/images/2020-05-31_144529.png)\n\n\n## Download\n\nFor Linux\n```bash\n$ver = '0.1.1'\ncurl -L https://github.com/giuliov/markdown2medium/releases/download/v${ver}/markdown2medium-${ver}-linux-x64 -o markdown2medium\nchmod +x markdown2medium\n./markdown2medium -h\n```\n\nFor Windows\n```powershell\n$ver = '0.1.1'\nInvoke-WebRequest https://github.com/giuliov/markdown2medium/releases/download/v${ver}/markdown2medium-${ver}-win-x64.exe -OutFile markdown2medium.exe\n./markdown2medium -h\n```\n\n\n## Usage\n\nThe options should be self-explanatory. Use `markdown2medium -h` to get the list of possible options.\n\nAt a minimum, you have to pass `--mediumIntegrationToken` (Medium authentication) and `--markdownFile` (the post to upload).\nBy default, the post is published as _draft_; the `--publishStatus` option allows for a _public_ or an _unlisted_ post.\n\n`--canonicalURL` sets the URL of original post and `--originalNote` appends some Markdown at the post, typically to link back to the original post. The `--originalNote` option accepts [Go Templates](https://golang.org/pkg/text/template/) and can use these properties:\n\n Property       | Description\n----------------|-------------\n BaseURL        | scheme and hostname of canonical URL\n CanonicalURL   | Post canonical URL as defined by `--canonicalURL` option\n Title          | Post title extracted from Front Matter\n Date           | Post date extracted from Front Matter\n\nUse `--dryRun` to check that the input file is correct and `--debug` to dump the exact HTML that will be uploaded to Medium.\n\n\n### Sample usage\n```\nmarkdown2medium                                                                                                     \\\n    --mediumIntegrationToken 1234567890abcdef1234567890abcdef123457890abcdef123456789abcdef1234                     \\\n    --markdownFile C:/myblog/content/post/2019/pyp/1-hosts/index.md                                                 \\\n    --canonicalURL http://blog.casavian.eu/2019/08/23/meta-pipelines-part-1-docker-hosts/                           \\\n    --publishStatus draft                                                                                           \\\n    --originalNote 'Originally posted at [{{ .BaseURL }}]({{ .CanonicalURL }}) on {{ .Date.Format \\\"2 Jan 2006\\\" }}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuliov%2Fmarkdown2medium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiuliov%2Fmarkdown2medium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuliov%2Fmarkdown2medium/lists"}