Skip to content

Commit

Permalink
Fix yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed Dec 5, 2024
1 parent f15b357 commit bc4ad20
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions posts/09-self-contained/index.qmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
be---
title: "Self-contained HTML"
date: "2022-07-06"
categories: [html]
image: "featured.png"
image-alt: "YAML with format html and option embed-resources set to true."
---
title: "Self-contained HTML"
date: "2022-07-06"
categories: html
image: "featured.png"
image-alt: "YAML with format html and option embed-resources set to true."
---

## `embed-resources: true`
Expand All @@ -20,13 +20,13 @@ This produces a standalone HTML with no external dependencies.
- This works with `.qmd` and `.ipynb` files.
- If instead of publishing the document, you want to share it using a file-sharing service (e.g., Dropbox) or email it to someone just like you share other document types like spreadsheets, presentations, and PDFs, you should use this option to generate a self-contained HTML.
- Quarto presentations created with revealjs can also be published as self-contained HTML.
Math libraries are not embedded in self-contained HTML documents by default (because they are quite large and often time-consuming to download), but you can add `self-contained-math: true` to your YAML to embed them as well.
- Quarto presentations created with revealjs can also be published as self-contained HTML. Math libraries are not embedded in self-contained HTML documents by default (because they are quite large and often time-consuming to download), but you can add `self-contained-math: true` to your YAML to embed them as well.

## Learn more

[Self-contained HTML](https://quarto.org/docs/output-formats/html-basics.html#self-contained)

::: callout-note
An earlier version of this post referred to `self-contained`. That YAML field has been deprecated and `embed-resources` should be used.
An earlier version of this post referred to `self-contained`.
That YAML field has been deprecated and `embed-resources` should be used.
:::

0 comments on commit bc4ad20

Please sign in to comment.