quarto-clean

Replace LaTeX holdovers with Quarto/Pandoc syntax in .qmd files.

14|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/christopherkenny/skills --skill quarto-clean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quarto-clean
Source: https://github.com/christopherkenny/skills/tree/main/skills/quarto-clean
Command: npx skills add https://github.com/christopherkenny/skills --skill quarto-clean

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cleans Quarto manuscripts by replacing LaTeX holdovers with proper Quarto/Pandoc syntax so the document renders correctly across HTML, PDF (Typst/LaTeX), and Word.

Core Features & Use Cases

  • Replaces LaTeX holdovers such as \citep{}, \ref{}, and \includegraphics with Pandoc/Quarto equivalents to ensure citations and figures render in all outputs.
  • Converts inline math, hyperlinks, and text formatting to native Quarto syntax, preserving structure for HTML, PDF, and Word exports.
  • Works on documents migrated from LaTeX or R Markdown, including articles, reports, or theses, and preserves YAML front matter and code blocks.

Quick Start

Provide the path to the .qmd file you want cleaned and the tool will rewrite it in place, replacing LaTeX remnants with proper Quarto/Pandoc syntax.

Frequently Asked Questions about quarto-clean

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert LaTeX citations to Quarto syntax in a .qmd file?

To convert LaTeX citations to Quarto syntax, the tool rewrites .qmd files in place, replacing commands like \citep{} with proper Pandoc equivalents so citations render correctly across HTML, PDF, and Word outputs.

Why does my Quarto document fail to render figures after migrating from LaTeX?

Quarto rendering fails when LaTeX holdovers like \includegraphics remain in the document. The tool replaces these remnants with Pandoc equivalents, ensuring figures and cross references render correctly in all output formats.

Can I clean up Quarto files without breaking YAML front matter and code blocks?

Yes, you can clean up Quarto files safely. The tool uses pattern detection and safe modification rules to preserve YAML front matter and code blocks while converting inline math, citations, and formatting.

What is the best way to convert inline math and hyperlinks in Quarto for HTML and PDF output?

The best way to convert inline math and hyperlinks is to rewrite the .qmd file in place, replacing LaTeX remnants with native Quarto syntax to preserve structure for HTML, PDF, and Word exports.

Does Quarto cleanup work on theses and reports migrated from R Markdown?

Yes, Quarto cleanup works on theses and reports migrated from R Markdown. It detects LaTeX holdovers in .qmd files and applies safe modification rules to convert citations, cross references, and formatting for flawless rendering.