Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions quarto/quarto-authoring/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,19 @@ description: >
to Quarto, and creating Quarto websites, books, presentations, and reports.
metadata:
author: Mickaël Canouil (@mcanouil)
version: "1.1"
version: "1.2"
license: MIT
---

# Quarto Authoring

> This skill is based on Quarto CLI v1.8.26.
> This skill is based on Quarto CLI v1.9.36 (2026-03-24).

## When to Use What

Task: Write a new Quarto document
Use: Follow "QMD Essentials" below, then see specific reference files

Task: Convert R Markdown to Quarto
Use: [references/conversion-rmarkdown.md](references/conversion-rmarkdown.md)

Task: Migrate bookdown project
Use: [references/conversion-bookdown.md](references/conversion-bookdown.md)

Task: Migrate xaringan slides
Use: [references/conversion-xaringan.md](references/conversion-xaringan.md)

Task: Migrate distill article
Use: [references/conversion-distill.md](references/conversion-distill.md)

Task: Migrate blogdown site
Use: [references/conversion-blogdown.md](references/conversion-blogdown.md)

Task: Add cross-references
Use: [references/cross-references.md](references/cross-references.md)

Expand Down Expand Up @@ -79,6 +64,17 @@ Use: [references/extensions.md](references/extensions.md)
Task: Apply markdown linting rules
Use: [references/markdown-linting.md](references/markdown-linting.md)

### Migration (only when converting an existing project)

Do NOT read these references when writing new Quarto documents.
Only read the one matching the source format when the user explicitly asks to convert or migrate an existing project.

- R Markdown (.Rmd) to Quarto: [references/conversion-rmarkdown.md](references/conversion-rmarkdown.md)
- bookdown project: [references/conversion-bookdown.md](references/conversion-bookdown.md)
- xaringan slides: [references/conversion-xaringan.md](references/conversion-xaringan.md)
- distill article: [references/conversion-distill.md](references/conversion-distill.md)
- blogdown site: [references/conversion-blogdown.md](references/conversion-blogdown.md)

## QMD Essentials

### Basic Document Structure
Expand Down
6 changes: 3 additions & 3 deletions quarto/quarto-authoring/references/callouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ See @nte-important for details.

## Nested Callouts

Use more colons for outer divs when nesting:
Nest callouts inside each other:

````markdown
:::: {.callout-note}
::: {.callout-note}

## Outer Callout

::: {.callout-tip}
Nested callout.
:::

::::
:::
````

## Format-Specific Options
Expand Down
2 changes: 0 additions & 2 deletions quarto/quarto-authoring/references/citations.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,3 @@ Or use `@Manual` for R packages.
- [Quarto Citations](https://quarto.org/docs/authoring/citations.html)
- [Pandoc Citations](https://pandoc.org/MANUAL.html#citations)
- [CSL Styles](https://citationstyles.org/)


2 changes: 0 additions & 2 deletions quarto/quarto-authoring/references/conditional-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,3 @@ Basic HTML content.

- [Quarto Conditional Content](https://quarto.org/docs/authoring/conditional.html)
- [Project Profiles](https://quarto.org/docs/projects/profiles.html)


5 changes: 2 additions & 3 deletions quarto/quarto-authoring/references/conversion-blogdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Install extension: `quarto add sellorm/quarto-social-embeds`

````markdown
{{</* youtube VIDEO_ID */>}}
```
````

#### Quarto

Expand All @@ -259,7 +259,7 @@ Install extension: `quarto add sellorm/quarto-social-embeds`
{{</* highlight r */>}}
code here
{{</* /highlight */>}}
```
````

#### Quarto

Expand Down Expand Up @@ -528,4 +528,3 @@ Check for Hugo-specific template syntax in content files.
- [Quarto Websites](https://quarto.org/docs/websites/)
- [Quarto Blogs](https://quarto.org/docs/websites/website-blog.html)
- [Quarto Themes](https://quarto.org/docs/output-formats/html-themes.html)

3 changes: 1 addition & 2 deletions quarto/quarto-authoring/references/conversion-xaringan.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Content fades in
::: {.fragment .fade-in}
Content fades in
:::
```
````

Fragment types:

Expand Down Expand Up @@ -463,4 +463,3 @@ format:
- [Quarto RevealJS](https://quarto.org/docs/presentations/revealjs/)
- [RevealJS Options](https://quarto.org/docs/reference/formats/presentations/revealjs.html)
- [Presentation Features](https://quarto.org/docs/presentations/)

6 changes: 2 additions & 4 deletions quarto/quarto-authoring/references/divs-and-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Content with attributes.

## Nested Divs

Use more colons for outer div:
Nest divs inside each other:

````markdown
::: {.outer}
Expand Down Expand Up @@ -180,7 +180,7 @@ Raw LaTeX content.

### Inline Raw Content

`arkdown
````markdown
Text with `<br>`{=html} line break.
````

Expand Down Expand Up @@ -341,5 +341,3 @@ Special classes:

- [Pandoc Divs and Spans](https://pandoc.org/MANUAL.html#divs-and-spans)
- [Quarto Markdown Basics](https://quarto.org/docs/authoring/markdown-basics.html)


2 changes: 0 additions & 2 deletions quarto/quarto-authoring/references/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,5 +425,3 @@ KOMA classes support margin content automatically.
- [Quarto Article Layout](https://quarto.org/docs/authoring/article-layout.html)
- [Page Layout](https://quarto.org/docs/output-formats/page-layout.html)
- [Figures Layout](https://quarto.org/docs/authoring/figures.html#figure-panels)


2 changes: 1 addition & 1 deletion quarto/quarto-authoring/references/markdown-linting.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Key points:

- Blank line before opening `:::`.
- Blank line after closing `:::`.
- Use `::::` (four+ colons) for nesting outer divs.
- Use `:::` (three colons) for both opening and closing divs, including when nesting.

## Resources

Expand Down