Quarto Clean

•
1.9k
•

Converts legacy LaTeX and R Markdown syntax within Quarto documents into native Pandoc format for seamless multi-format rendering.

Quarto Clean is a specialized utility designed to modernize and repair Quarto (.qmd) files by systematically replacing legacy LaTeX commands and R Markdown patterns with standard Quarto/Pandoc syntax. It ensures documents render correctly across HTML, PDF (Typst/LaTeX), and Word formats by automatically fixing citations, cross-references, figure environments, and code chunk options. This skill is essential for researchers and data scientists migrating manuscripts from LaTeX or older R Markdown projects who want to leverage Quarto’s multi-format capabilities without the burden of manual syntax translation.

主要功能

011,853 GitHub stars
02Automates text formatting conversion for bold, italics, footnotes, and inline math
03Maps LaTeX cross-references (\ref, \label) to native Quarto identifiers (@fig-, @tbl-)
04Transforms LaTeX figure and table environments into native Markdown structures
05Converts LaTeX citations (\citep, \citet) to Pandoc bracket syntax ([@key])
06Modernizes R Markdown code chunk options into the #| YAML block format

使用场景

01Fixing rendering errors when exporting legacy R Markdown files to Microsoft Word or Typst
02Migrating a scientific manuscript from a LaTeX template to a Quarto document for web publishing
03Standardizing repository-wide .qmd files to follow modern Quarto best practices and YAML chunk headers