Typ

Typ

Turn plain Markdown into a formatted PDF, ready for print.

1 follower

Typ is a command line application that lets you turn Markdown documents into formatted PDFs. Features Write content in Markdown Syntax highlighting Page dimensions, fonts, formatting, etc PDFs usable by print on demand services Windows and Linux support
Typ gallery image
Typ gallery image
Launch tags:ProductivityWriting
Launch Team
Migma AI
Migma AI
Lovable for Email
Promoted

What do you think? …

John Underwood
What about asciidoc?
Bryan Klein
@jnunderwood yes, this is exactly what I was thinking, asciidoctor-pdf is excellent and very flexible.
Mikiel Agutu
@jnunderwood @bryan_klein AsciiDoc does look very powerful. I suppose the main difference is that Typ uses Markdown as it's content format, and Asciidoctor uses...well, the AsciiDoc format. For those that prefer Markdown, for whatever reason (simplicity, existing content already in Markdown, etc) then Typ could be a better option.
Mikiel Agutu
I created this tool because I wanted to write a print book using Markdown. I couldn't find a tool that could produce PDFs with the right dimensions and content for print-on-demand services (Blurb, CreateSpace, etc). I also didn't want to faff with manually formatting everything, spending ages wrestling with MS Word. Typ leans on the standard features of Markdown to format your PDFs. For things that Markdown doens't specify (fonts etc) are defined in a single config file. It's still in an early stage, but even now you can produce ready-for-print PDFs from content written entirely in Markdown.
Nuts)
@mikiel_agutu why not just use Pandoc?
Mikiel Agutu
@omfgnuts Good question. I wanted a tool that could produce PDFs primarily for printing as a physical book. I found Pandoc to be quite complex for my needs. From the docs it seemed like there's an awful lot to it. I also wanted control over the styling of the documents, and I wasn't 100% sure if I could get Pandoc to do what I wanted. I created Typ as part of an experimental process of figuring out how to create PDFs in the format I wanted. It now allows me to get the results I want without much bother, so I thought I'd share it with others.
David Vines
@omfgnuts @mikiel_agutu just last week I tried to convert markdown and HTML into PDF for a document and it was painful. Pandoc converts to latex and the second you add things like code blocks or tables you are in for a lot of formatting. Markdown/HTML do not care how they look on an 8x11 piece of paper. Hope you can add this to some mainstream Linux repos.
Rainui Ly
Seems to be a good tool, but what about Typora?
Mikiel Agutu
@rxii Typora's main focus is on writing content. From what I can see it's PDF export functionality is limited (for instance https://github.com/typora/typora...). Typ offers more control over the PDF formatting. So a good workflow could be to draft your content in Typora, then use Typ to produce the PDF.