{"id":19579179,"url":"https://github.com/itsbrex/gpt-markdown-switch","last_synced_at":"2026-06-13T11:33:17.467Z","repository":{"id":163260483,"uuid":"638617596","full_name":"itsbrex/gpt-markdown-switch","owner":"itsbrex","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T08:31:20.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-11T13:34:56.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/itsbrex.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}},"created_at":"2023-05-09T18:25:43.000Z","updated_at":"2023-05-09T18:26:15.000Z","dependencies_parsed_at":"2023-12-15T09:43:13.684Z","dependency_job_id":null,"html_url":"https://github.com/itsbrex/gpt-markdown-switch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itsbrex/gpt-markdown-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsbrex%2Fgpt-markdown-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsbrex%2Fgpt-markdown-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsbrex%2Fgpt-markdown-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsbrex%2Fgpt-markdown-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsbrex","download_url":"https://codeload.github.com/itsbrex/gpt-markdown-switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsbrex%2Fgpt-markdown-switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-11T07:14:54.637Z","updated_at":"2026-06-13T11:33:17.452Z","avatar_url":"https://github.com/itsbrex.png","language":"Python","funding_links":["https://github.com/sponsors/gpt-markdown-switch"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e \u003cbr\u003eGPT Markdown Switch 🪄\u003c/h1\u003e \u003ch4 align=\"center\"\u003eA simple Python script to generate and convert ChatGPT-compatible Markdown that won't render inline fenced code blocks on the page.\u003c/h4\u003e \u003cp align=\"center\"\u003e \u003ca href=\"https://github.com/itsbrex/gpt-markdown-switch/commits/master\"\u003e \u003cimg src=\"https://img.shields.io/github/last-commit/itsbrex/gpt-markdown-switch.svg?style=flat-square\u0026logo=github\u0026logoColor=white\" alt=\"GitHub last commit\"\u003e \u003ca href=\"https://github.com/itsbrex/gpt-markdown-switch/issues\"\u003e \u003cimg src=\"https://img.shields.io/github/issues-raw/itsbrex/gpt-markdown-switch.svg?style=flat-square\u0026logo=github\u0026logoColor=white\" alt=\"GitHub issues\"\u003e \u003ca href=\"https://github.com/itsbrex/gpt-markdown-switch/pulls\"\u003e \u003cimg src=\"https://img.shields.io/github/issues-pr-raw/itsbrex/gpt-markdown-switch.svg?style=flat-square\u0026logo=github\u0026logoColor=white\" alt=\"GitHub pull requests\"\u003e \u003ca href=\"https://twitter.com/intent/tweet?text=Try this GPT Markdown Toggle:\u0026url=https%3A%2F%2Fgithub.com%2Fgpt-markdown-switch%2Fgpt-markdown-switch\"\u003e \u003cimg src=\"https://img.shields.io/twitter/url/https/github.com/itsbrex/gpt-markdown-switch.svg?style=flat-square\u0026logo=twitter\" alt=\"GitHub tweet\"\u003e \u003cp align=\"center\"\u003e \u003ca href=\"#overview\"\u003eOverview\u003c/a\u003e • \u003ca href=\"#demo\"\u003eDemo\u003c/a\u003e • \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e • \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e • \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e • \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e • \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e \u003c/p\u003e\n\n## Overview\n\nGPT Markdown Switch has two main components. The first is a custom prompt to generate *actual* single codeblock README files that can easily be copy and pasted into your project. The second is a Python script that allows you to toggle between custom markdown format and standard markdown format. The custom markdown format uses headers represented by `H1`, `H2`, `H3`, etc., triple single quotes `'''` for fenced code blocks, and single backticks for inline code snippets so that you *actually* get back single code blocks instead of multiple rendered markdown code blocks.\n\n## Demo\n\nhttps://github.com/itsbrex/gpt-markdown-switch/assets/9772694/06700b20-5079-4a6a-845c-ce9d9c25f816\n\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"center\" src=\"https://cloud.githubusercontent.com/assets/532272/21507867/3376e9fe-cc4a-11e6-9350-7ec4f680da36.gif\"\u003e\n\u003c/p\u003e\n\n### Why did I make this? \nIt's annoying when ChatGPT renders fenced code blocks within Markdown directly on the page, making it hard to copy everything at once. I wanted a way to create README files for my projects that I could easily copy and paste, so I created a custom prompt that tells ChatGPT to replace traditional Markdown syntax with custom syntax so it doesn't render on the page. This worked, but the custom Markdown format still needed to be converted back to regular markdown for the actual README file. To fix this, I made a Python script that automatically detects the current format and switches everything accordingly. Badabing! With GPT Markdown Switch, you can now generate full code block README files (or any other Markdown content) that are easy to copy and paste.\n## Features\n\n- Toggle between custom markdown format and standard markdown format\n- Replace headers with custom format (H1, H2, H3, etc.)\n- Replace triple backticks with triple single quotes for fenced code blocks\n- Keep single backticks for inline code snippets\n\n## Requirements\n\n- Python 3.6+\n\n## Usage\n### GPT README Prompt\n\u003cdetails\u003e\n\u003csummary\u003e🔥 Use this prompt to get a single markdown code block responses 🔥\u003c/summary\u003e\n\n```\nWrite a readme for my repository named \"REPOSITORY NAME\" based on the following code and using the custom markdown format where headers are represented by H1, H2, H3, etc., triple single quotes (''') are used for fenced code blocks, and single backticks (`) are used for inline code snippets:\n\nPASTE YOUR CODE HERE\n```\n\u003c/details\u003e\n\n1. Once you are ready to generate a `README` for your project, go to [ChatGPT](https://chat.openai.com/) and enter the prompt above, followed by the code for your main script and/or `package.json` file to provide more context.\n2. Save the response as `README.md` in the root of your project directory.\n3. Run the script in the same directory as your `README.md` file with the following command:\n\n```\npython3 gpt_markdown_switch.py\n```\n\u003e Add this as an alias to your `zshrc` or `bashrc` file to run the script from anywhere: \n`alias switch-md=\"python3 ~/github/gpt-markdown-switch/gpt_markdown_switch.py\"`\n\nThe script will automatically detect if your `README.md` is in custom markdown format or standard markdown format and convert it accordingly.\n\n## Todo\n- [x] push v1 to GitHub\n- [ ] publish to PyPi\n\n## Contributing\n\nIf you find any bugs or want to suggest new features, please feel free to contribute by submitting an [issue](https://github.com/gpt-markdown-switch/issues) or a [pull request](https://github.com/gpt-markdown-switch/pulls).\n\n## Contributors ✨\nThanks goes to these wonderful people ([emoji key](https://github.com/all-contributors/all-contributorsH1emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/github/all-contributors/itsbrex/gpt-markdown-switch?color=ee8449\u0026style=flat-square)](#Contributing)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\nThis project follows the [all-contributors](https://allcontributors.org/) specification. Contributions of any kind welcome!\n\n## License\n\nLicensed under the MIT license. See the [LICENSE](./LICENSE) file for more information.\n\nIf you found this project interesting or helpful, please consider [sponsoring me](https://github.com/sponsors/gpt-markdown-switch) or \u003ca href=\"https://twitter.com/gpt-markdown-switch\"\u003efollowing me on twitter \u003cimg src=\"https://storage.googleapis.com/saasify-assets/twitter-logo.svg\" alt=\"twitter\" height=\"24px\" align=\"center\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsbrex%2Fgpt-markdown-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsbrex%2Fgpt-markdown-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsbrex%2Fgpt-markdown-switch/lists"}