Quarkdown
🪐 Markdown with superpowers: from ideas to papers, presentations, websites, books, and knowledge bases.
Install / Use
/learn @iamgio/QuarkdownREADME
Table of contents
About
Quarkdown is a modern Markdown-based typesetting system designed for versatility. It allows a single project to compile seamlessly into a print-ready book, academic paper, knowledge base, or interactive presentation. All through an incredibly powerful Turing-complete extension of Markdown, ensuring your ideas flow automatically into paper.
<p align="center"> <img src="https://raw.githubusercontent.com/iamgio/quarkdown/project-files/images/paged-demo.png" alt="Paper demo"> <p align="center"><em>Original credits: <a href="https://arxiv.org/abs/1706.03762v7">Attention Is All You Need</a></em></p> </p> <br>
Born as an extension of CommonMark and GFM, the Quarkdown Flavor brings functions to Markdown, along with many other syntax extensions.
<br><br>This is a function call:
.somefunction {arg1} {arg2} Body argument
Possibilities are unlimited thanks to an ever-expanding standard library, which offers layout builders, I/O, math, conditional statements and loops.
Not enough? You can still define your own functions and variables — all within Markdown. You can even create awesome libraries for everyone to use.
<br><br>.function {greet} to from: **Hello, .to** from .from! .greet {world} from:{iamgio}Result: Hello, world from iamgio!
This out-of-the-box scripting support opens doors to complex and dynamic content that would be otherwise impossible to achieve with vanilla Markdown.
Combined with live preview, :zap: fast compilation speed and a powerful VS Code extension, Quarkdown simply gets the work done, whether it's an academic paper, book, knowledge base or interactive presentation.
<p align="center"> <img src="https://raw.githubusercontent.com/quarkdown-labs/quarkdown-vscode/refs/heads/project-files/live-preview.gif" alt="Live preview" /> </p>
<h2 align="center">Looking for something?</h2> <p align="center"> <strong> Check out the <a href="https://quarkdown.com/wiki" target="_blank">wiki</a> </strong> to get started and learn more about the language and its features! </p>
As simple as you expect...
<p align="center"> <img src="https://raw.githubusercontent.com/iamgio/quarkdown/project-files/images/code-paper.png" alt="Paper code demo"> <p align="center"><em>Inspired by: <a href="https://news.mit.edu/2025/x-ray-flashes-nearby-supermassive-black-hole-accelerate-mysteriously-0113">X-ray flashes from a nearby supermassive black hole accelerate mysteriously</a></em></p> </p><h2 align="right">...as complex as you need.</h2> <p align="center"> <img src="https://raw.githubusercontent.com/iamgio/quarkdown/project-files/images/code-chart.png" alt="Chart code demo"> </p>
Targets
-
HTML
-
[X] Plain
Continuous flow like Notion/Obsidian, perfect for static websites and knowledge management - check out the author's personal website. -
[X] Paged <sup>via paged.js</sup>
Perfect for papers, articles and books - check out the demo document. -
[X] Slides <sup>via reveal.js</sup>
Perfect for interactive presentations. -
[X] Docs
Perfect for wikis, technical documentation and large knowledge bases - check out Quarkdown's wiki.
-
-
PDF
- [X] All document types and features supported by HTML are also supported when exporting to PDF.
-
Plain text
The desired document type can be set by calling the .doctype function within the source itself:
.doctype {plain}(default).doctype {paged}.doctype {slides}.doctype {docs}
Comparison
| | Quarkdown | LaTeX | Typst | AsciiDoc | MDX | |-----------------------|:------------------:|:------------------:|:------------------:|:------------------:|:------------------:| | Concise and readable | :white_check_mark: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Full document control[^control] | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | | Scripting | :white_check_mark: | Partial | :white_check_mark: | :x: | :white_check_mark: | | Book/article export | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Third-party | | Presentation export | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Third-party | | Static site export | :white_check_mark: | :x: | Experimental | :white_check_mark: | :white_check_mark: | | Docs/wiki export | :white_check_mark: | :x: | :x: | :white_check_mark: | :white_check_mark: | | Learning curve | :green_circle: | :red_circle: | :orange_circle: | :green_circle: | :green_circle: | | Targets | HTML, PDF, TXT | PDF, PostScript | HTML, PDF | HTML, PDF, ePub | HTML |
[^control]: The ability to customize the properties of the document and of its output artifact through the language itself.
<table> <thead> <tr> <th>LaTeX</th> <th>Quarkdown</th> </tr> </thead> <tbody> <tr> <td>\tableofcontents
\section{Section}
\subsection{Subsection}
\begin{enumerate}
\item \textbf{First} item
\item \textbf{Second} item
\end{itemize}
\begin{center}
This text is \textit{centered}.
\end{center}
\begin{figure}[!h]
\centering
\begin{subfigure}[b]
\includegraphics[width=0.3\linewidth]{img1.png}
\end{subfigure}
\begin{subfigure}[b]
\includegraphics[width=0.3\linewidth]{img2.png}
\end{subfigure}
\begin{subfigure}[b]
\includegraphics[width=0.3\linewidth]{img3.png}
\end{subfigure}
\end{figure}
</td>
<td>
.tableofcontents
# Section
## Subsection
1. **First** item
2. **Second** item
.center
This text is _centered_.
.row alignment:{spacebetween}



</td>
</tr>
</tbody>
</table>
Getting started
Installation
Install script (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/quarkdown-labs/get-quarkdown/refs/heads/main/install.sh | sudo env "PATH=$PATH" bash
Root privileges let the script install Quarkdown into /opt/quarkdown and its wrapper script into /usr/local/bin/quarkdown.
If missing, Java 17, Node.js and npm will be installed automatically using the system's package manager.
For more installation options, check out get-quarkdown.
Homebrew (Linux/macOS)
brew install quarkdown-labs/quarkdown/quarkdown
Install script (Windows)
irm https://raw.githubusercontent.com/quarkdown-labs/get-quarkdown/refs/heads/main/install.ps1 | iex
Scoop (Windows)
scoop bucket add java
scoop bucket add quarkdown https://github.com/quarkdown-labs/scoop-quarkdown
scoop install quarkdown
GitHub Actions
See [setup-quarkdown](htt
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
summarize
344.1kSummarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
feishu-doc
344.1k|
