| Crates.io | md-typ-pdf |
| lib.rs | md-typ-pdf |
| version | 0.1.1 |
| created_at | 2025-11-07 18:59:12.570689+00 |
| updated_at | 2025-11-20 18:52:41.609559+00 |
| description | Convert markdown files to PDF using typst |
| homepage | |
| repository | https://github.com/Magi3r/md-typ-pdf |
| max_upload_size | |
| id | 1922006 |
| size | 17,521 |
A simple command-line tool written in Rust that converts Markdown (.md) files into clean PDF documents using using typst and the cmarker package.
Before running, make sure you have Typst CLI installed and available in your $PATH.
You can check if Typst is installed with:
typst --version
Very basic usage:
md-typ-pdf input.md
This generates input.pdf.
You can also specify the output file name:
md-typ-pdf input.md output.pdf
I was annoyed by the looks of pandocs markdown to pdf conversion (especially the insanely large default margins) and the need to install Gigabytes of latex... Also I was annoyed to open another program like VSCode (for this great extension) or Obsidian (that generate html out of them first and use chromium webrendering for the PDF), just to generate pleasing PDF files for submissions of assignements for my lectures. So I created this: A very lightweight tool (including dependencies!) to do the simple task of converting my markdown files to PDF files that look fine for submission of exercises.