{"id":29195439,"url":"https://github.com/nallenscott/c2md","last_synced_at":"2026-04-19T14:32:19.650Z","repository":{"id":300800955,"uuid":"1007222570","full_name":"nallenscott/c2md","owner":"nallenscott","description":"Export Confluence pages to Markdown using the Atlassian API + Pandoc.","archived":false,"fork":false,"pushed_at":"2025-06-23T17:16:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T05:04:26.533Z","etag":null,"topics":["atlassian","bash","confluence","jq","markdown","pandoc"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nallenscott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-23T16:44:30.000Z","updated_at":"2025-06-23T17:16:14.000Z","dependencies_parsed_at":"2025-06-23T17:59:07.533Z","dependency_job_id":null,"html_url":"https://github.com/nallenscott/c2md","commit_stats":null,"previous_names":["nallenscott/c2md"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nallenscott/c2md","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nallenscott%2Fc2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nallenscott%2Fc2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nallenscott%2Fc2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nallenscott%2Fc2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nallenscott","download_url":"https://codeload.github.com/nallenscott/c2md/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nallenscott%2Fc2md/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["atlassian","bash","confluence","jq","markdown","pandoc"],"created_at":"2025-07-02T05:04:27.252Z","updated_at":"2026-04-19T14:32:19.607Z","avatar_url":"https://github.com/nallenscott.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c2md\n\n**c2md** is a one-liner CLI tool for exporting Confluence pages to Markdown.\n\nIt fetches the raw XHTML using the Atlassian API and converts it to clean, portable Markdown using `pandoc`.\n\nNo cloning, no browser, no nonsense.\n\n---\n\n## 🚀 Quick Start\n\n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/nallenscott/c2md/main/convert.sh)\n```\n\nYou'll be prompted for:\n- Confluence **org name** (e.g. `acme`)\n- Page ID\n- Confluence email (username)\n- API token (input is hidden)\n\n---\n\n## 🛠 Requirements\n\n- [`pandoc`](https://pandoc.org/installing.html)\n- [`jq`](https://stedolan.github.io/jq/)\n\nInstall via Homebrew:\n\n```bash\nbrew install pandoc jq\n```\n\n---\n\n## 📦 What It Does\n\n- Hits the Confluence API\n- Extracts the raw XHTML from `body.storage.value`\n- Cleans it up\n- Converts to Markdown using `pandoc`\n- Saves output to `page.md`\n\n---\n\n## 🧪 Example\n\n```bash\nConfluence org:     acme\nPage ID:            1234567890\nOutput:             ./page.md\n```\n\n---\n\n## 🙋‍♂️ Why\n\n- Atlassian doesn’t support Markdown export natively\n- This makes it dead simple to extract content without dealing with a browser\n\n---\n\n## ⚠️ Heads up\n\n- Macros like Jira links, attachments, and embedded diagrams will show up as raw `\u003cac:*\u003e` tags\n- Attachments aren’t downloaded\n- Some cleanup might still be needed for edge cases like nested formatting\n\nFor most text-heavy pages, it just works.\n\n---\n\n## 📝 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnallenscott%2Fc2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnallenscott%2Fc2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnallenscott%2Fc2md/lists"}