A Chrome extension that renders .qmd (Quarto Markdown) files directly on GitHub with syntax highlighting and proper formatting.
-
Clone this repository:
git clone https://github.com/androidilicious/GitQmd.git
-
Open Chrome and go to
chrome://extensions/ -
Enable "Developer mode" (toggle in top right)
-
Click "Load unpacked" and select the extension directory
Navigate to any .qmd file on GitHub and click the "Render QMD" button in the file header to toggle between raw and rendered views.
- YAML frontmatter parsing (title, author, date)
- Syntax highlighting for code blocks
- Markdown rendering (tables, lists, blockquotes, images)
- LaTeX math rendering (
$...$ and$$...$$ ) - Text wrapping in code blocks
- LaTeX command cleanup (
\newpage, etc.) - Dark mode support
Built with:
- Manifest V3
- Marked.js (markdown parsing)
- Highlight.js (syntax highlighting)
- KaTeX (math rendering)
- Vanilla JavaScript
Files:
manifest.json- Extension configurationcontent.js- Main functionalitystyles.css- Slate/cyan theme stylinglib/- Bundled libraries (CSP compliant)
- Does not execute code chunks
- Complex Quarto features (cross-references, citations) shown as plain text
- Works only on GitHub
MIT License - See LICENSE file
Diwas Puri
Duke University
diwas.puri@duke.edu
Issues and pull requests are welcome.
