{"id":22916814,"url":"https://github.com/chanmo/docker-pandoc","last_synced_at":"2025-04-01T12:44:37.907Z","repository":{"id":180090115,"uuid":"613644992","full_name":"ChanMo/docker-pandoc","owner":"ChanMo","description":"docker pandoc api","archived":false,"fork":false,"pushed_at":"2023-12-07T03:16:01.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T17:49:13.769Z","etag":null,"topics":["docker-pandoc","pandoc","pandoc-api"],"latest_commit_sha":null,"homepage":"","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/ChanMo.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":"2023-03-14T01:28:51.000Z","updated_at":"2024-10-02T14:29:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"9eb01efb-fced-4cf7-93d4-01f3b0ddabb7","html_url":"https://github.com/ChanMo/docker-pandoc","commit_stats":null,"previous_names":["chanmo/docker-pandoc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdocker-pandoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdocker-pandoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdocker-pandoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChanMo%2Fdocker-pandoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChanMo","download_url":"https://codeload.github.com/ChanMo/docker-pandoc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246642186,"owners_count":20810557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker-pandoc","pandoc","pandoc-api"],"created_at":"2024-12-14T06:14:45.040Z","updated_at":"2025-04-01T12:44:37.900Z","avatar_url":"https://github.com/ChanMo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pandoc Convert API\n\nNotice: There is no support for converting to PDF format.\n\nFor more tools to help you manage and use your documents, visit [Awesome Document](https://www.chanmo.me/awesome_document.html)\n\n## Usage\n\nStart the API server\n```\ndocker run --rm -p 5000:5000 chanmo/pandoc\n```\n\nConvert the DOCX file to HTML format, by httpie\n```\nhttp -f POST :5000/convert/html file@~/demo.docx\n```\n\nResult:\n```\n{\n    \"media\": [],\n    \"output\": \"/uploads/c2528467-3050-4d20-b5be-192fc273c86e.html\",\n    \"success\": true\n}\n```\n\nThen, you can download the HTML file from the output value.\n\nIf you want the API to return the binary data directly, you can add the `download=true`:\n```\nhttp -f POST :5000/convert/html?download=true file@~/demo.docx -o demo.html\n```\n\n## APIs\n\n```\n/convert/{format}\n```\n\nThe formats that is supported:\n* xml\n* html\n* markdown\n* org\n* epub\n\nVisit https://pandoc.org/, and get more help.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanmo%2Fdocker-pandoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanmo%2Fdocker-pandoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanmo%2Fdocker-pandoc/lists"}