{"id":13680128,"url":"https://github.com/p1ass/mdtopdf","last_synced_at":"2025-10-27T05:01:52.789Z","repository":{"id":47117458,"uuid":"172295266","full_name":"p1ass/mdtopdf","owner":"p1ass","description":"🐳 Pandoc docker image for converting markdown to PDF using TeX typesetting","archived":false,"fork":false,"pushed_at":"2020-12-04T15:59:33.000Z","size":1360,"stargazers_count":192,"open_issues_count":3,"forks_count":38,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T22:35:59.346Z","etag":null,"topics":["docker-image","markdown","mdtopdf","tex"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/p1ass.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":"2019-02-24T04:23:55.000Z","updated_at":"2024-10-11T17:01:13.000Z","dependencies_parsed_at":"2022-09-21T02:21:46.228Z","dependency_job_id":null,"html_url":"https://github.com/p1ass/mdtopdf","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1ass%2Fmdtopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1ass%2Fmdtopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1ass%2Fmdtopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1ass%2Fmdtopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p1ass","download_url":"https://codeload.github.com/p1ass/mdtopdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251569615,"owners_count":21610589,"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-image","markdown","mdtopdf","tex"],"created_at":"2024-08-02T13:01:13.312Z","updated_at":"2025-10-27T05:01:52.712Z","avatar_url":"https://github.com/p1ass.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# mdtopdf 🐳\n\nmdtopdf is the pandoc docker image for converting markdown to PDF using TeX typesetting.\n\n## Examples\n\nYou can see example markdown file and converted PDF file from the link below👇\n\n[example markdown](examples/example.md)\n\n[example converted PDF](examples/example.pdf)\n\n![Top Image](top_image.png)\n\n## Getting Started\n\n1. Pull docker image.\n```bash\n$ docker pull plass/mdtopdf\n```\n\n⚠️ This docker image size is **1.68GB**. I recommend pulling it using the fast Internet connection.\n\n2. Generate PDF file.\n```bash\n$ docker run -it --rm -v \"`pwd`\":/workdir plass/mdtopdf mdtopdf INPUT.md\n```\n\n**Windows (PowerShell)** : Replace `` `pwd` `` to `${pwd}`  \n**fish shell** : Replace `` `pwd` `` to `(pwd)`\n\n## Advanced Usages\n\n### Generate PDF file on save\n\n```bash\n$ docker run -it --rm -v \"`pwd`\":/workdir  plass/mdtopdf w-mdtopdf INPUT.md\n```\n\n### Set alias\n\nYou can decrease typing using `alias` command as below,\n\n```bash\n$ echo \"alias mdtopdf='docker run -it --rm -v \"`pwd`\":/workdir plass/mdtopdf mdtopdf'\" \u003e\u003e ~/.bash_profile\n$ echo \"alias w-mdtopdf='docker run -it --rm -v \"`pwd`\":/workdir  plass/mdtopdf  w-mdtopdf'\" \u003e\u003e ~/.bash_profile\n$ source ~/.bash_profile\n \n$ mdtopdf INPUT.md\n$ w-mdtopdf INPUT.md\n```\n\n**zsh** : Modify `.zshrc` instead of `.bash_profile`.  \n**Ubuntu** : Modify `.bashrc` instead of `.bash_profile`.\n\nIf you're using Docker for Windows, setting alias is a bit tricky.  Use following command.\n\n```powershell\n\u003e echo 'Function mdtopdf {Param($file) docker run -it --rm -v ${pwd}:/workdir plass/mdtopdf mdtopdf $(Get-ChildItem $file -Name)}' \u003e\u003e $PROFILE\n\u003e echo 'Function mdtopdf {Param($file) docker run -it --rm -v ${pwd}:/workdir plass/mdtopdf w-mdtopdf $(Get-ChildItem $file -Name)}' \u003e\u003e $PROFILE\n\u003e . $PROFILE\n\u003e mdtopdf INPUT.md\n\u003e w-mdtopdf INPUT.md\n```\n\n### Generate tex file from markdown\n\n```bash\n$ docker run -it --rm -v \"`pwd`\":/workdir  plass/mdtopdf mdtotex INPUT.md\n```\n\n### Generate html file from markdown\n\n```bash\n$ docker run -it --rm -v \"`pwd`\":/workdir  plass/mdtopdf mdtohtml INPUT.md\n```\n\n[example converted HTML](examples/example.html)\n\n### Generate docx file from markdown\n\n```bash\n$ docker run -it --rm -v \"`pwd`\":/workdir  plass/mdtopdf mdtodocx INPUT.md\n```\n\n[example converted docx](examples/example.docx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1ass%2Fmdtopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp1ass%2Fmdtopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1ass%2Fmdtopdf/lists"}