{"id":22245307,"url":"https://github.com/superwalnut/markdown-gist-transform","last_synced_at":"2026-04-29T08:02:31.613Z","repository":{"id":38392807,"uuid":"295746157","full_name":"superwalnut/markdown-gist-transform","owner":"superwalnut","description":"transform markdown code into gist","archived":false,"fork":false,"pushed_at":"2021-07-13T06:31:31.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-17T05:20:20.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superwalnut.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}},"created_at":"2020-09-15T14:00:36.000Z","updated_at":"2022-06-23T09:53:29.000Z","dependencies_parsed_at":"2022-08-25T05:11:02.214Z","dependency_job_id":null,"html_url":"https://github.com/superwalnut/markdown-gist-transform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/superwalnut/markdown-gist-transform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwalnut%2Fmarkdown-gist-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwalnut%2Fmarkdown-gist-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwalnut%2Fmarkdown-gist-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwalnut%2Fmarkdown-gist-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superwalnut","download_url":"https://codeload.github.com/superwalnut/markdown-gist-transform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superwalnut%2Fmarkdown-gist-transform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":[],"created_at":"2024-12-03T05:13:06.287Z","updated_at":"2026-04-29T08:02:31.595Z","avatar_url":"https://github.com/superwalnut.png","language":"C#","funding_links":["https://ko-fi.com/Z8Z61I9HB"],"categories":[],"sub_categories":[],"readme":"# MD-Gist - a .net core tool to transform your markdown code with gist\n\n\u003e This is a markdown tool to transform markdown codes to gist links, it will create gists from the embeded code blocks in your markdown blog posts. It saves embeded gist block in formats of dev.to, medium and hugo blogs. You can also publish your markdown post to dev.to and medium as well.\n\n\n**Pre-request**\n\n- .Net Core 3.1\n- Github auth token\n- Medium auth token (Optional, for publishing)\n- Dev.to apikey (Optional, for publishing)\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Support](#support)\n- [License](#license)\n\n## Features\n\n\u003e You can manage your blog posts in a github repository with markdown formats. And use these blogs to transform it with gist for better publishing.\n\n- parse command\n    Discover mardown files for specified folder and transform all code blocks into gist link. It requires you to specify github auth token to create cosresponding gist files.\n\n    First you need to create a github access token.\n\n    To create the token, go to [Github Create Access Token](https://github.com/settings/tokens/new)\n    ![Github Access Token](./readme-images/github-access-token.png)\n\n    And make sure you select the Gist scope.\n\n    ![Gist Scope](./readme-images/gist-scope.png)\n    \n``` bash\n$ md-gist parse -f=\u003cPath\u003e -t=\u003cGithub_Auth_Token\u003e\n```\n\n    If the command successfully run, you would see a number of generated `.md` files. e.g.\n\n```\ncreate-dotnet-core-console-app-with-autofac-dependency-injection-[Dev.to].md\ncreate-dotnet-core-console-app-with-autofac-dependency-injection-[Hugo].md\ncreate-dotnet-core-console-app-with-autofac-dependency-injection-[Medium].md\ncreate-dotnet-core-console-app-with-autofac-dependency-injection-[Jekyll].md\ncreate-dotnet-core-console-app-with-autofac-dependency-injection.md\n```\nIf you open any of them, you should see all the code blocks are replaced with a gist link (or embeded code).\n\ne.g. \n\nfor Hugo blog, it replaces the code blocks as\n\n```\n{{\u003c gist superwalnut b92assadasdb5e58301cab0c28d3cf34d08 \u003e}}\n```\n\nfor Dev.to, it replaces as,\n\n```\n{% gist https://gist.github.com/superwalnut/b92434ccbxxx01cab0c28d3cf34d08 %}\n```\n\nfor Medium, it simply replaces as a gist link (when publishing to medium as markdown format, it will convert to proper embeded block)\n\n```\nhttps://gist.github.com/superwalnut/b92434xxx8301cab0c28d3cf34d08\n```\n\nfor jekyll, it replaces as,\n\n```\n{% gist c08ee0f272xxxx09d %}\n```\n\n- devto command\n    Use this to publish your post to Dev.to blog\n\n    First you need to create dev.to api keys in your [account settings](https://dev.to/settings/account)\n\n    ![API key](./readme-images/dev-to-apikey.png) \n\n\n```\n$ md-gist devto -f=\u003cFiles Path\u003e -k=\u003cDev.to API key\u003e -s=\u003cStatus draft/publish\u003e\n```\n\n- medium command\n    Use this to publish your post to Medium\n\n    First you need to create medium integration token in [account settings](https://medium.com/me/settings)\n\n    ![Medium Integration Token](./readme-images/medium-token.png)\n```\n$ md-gist medium -f=\u003cFiles Path\u003e -t=\u003cMedium Access Token\u003e -s=\u003cStatus draft/publish\u003e\n```\n\n## Installation\n\n- Using `dotnet tool install --global MD-Gist` to install the console tool from nuget \n\n``` shell\n$ dotnet tool install --global MD-Gist\n```\n\n---\n\n### Usage\n\nI am using github as my blog source and save my posts in markdown format. Here is an example, [tech blog](https://github.com/superwalnut/tech-blog)\n\nI created a sample post called \"markdown.md\".\n\nThen I created github action that will automatically detect any .md files and convert the code blocks to gist embeded code and pushed these new files to the repository as well.\n\n```\n    - name: Parse markdown\n      working-directory: ./Blogs\n      run: | \n        dotnet tool install --global MD-Gist\n        md-gist parse -t=${{secrets.GIST_TOKEN}}        \n        git config --local user.email \"action@github.com\"\n        git config --local user.name \"GitHub Action\"\n        git add .\n        git commit -m \"Add changes\" -a\n    - name: Push changes\n        uses: ad-m/github-push-action@master\n        with:\n            github_token: ${{ secrets.GIST_TOKEN }}\n```\n\nIt will create these files that you can publish directly in these blogging platforms\n\n```\nmarkdown-[Dev.to].md\nmarkdown-[Hugo].md\nmarkdown-[Jekyll].md\nmarkdown-[Medium].md\n```\n\n---\n\n## Support\n\nReach out to me at one of the following places!\n\n- [Follow me @ Github](https://github.com/superwalnut)\n\n- [Twitter](https://twitter.com/superwalnuts)\n\n- [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Z8Z61I9HB)\n\n---\n\n## License\n\n[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)\n\n- **[MIT license](http://opensource.org/licenses/mit-license.php)**\n\n-------","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperwalnut%2Fmarkdown-gist-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperwalnut%2Fmarkdown-gist-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperwalnut%2Fmarkdown-gist-transform/lists"}