From bfc5bcbf0a73cc9013007034b4c9ab9d18b71e56 Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Sun, 11 Feb 2024 07:09:45 +0000 Subject: [PATCH] Add RevealJS shortcode --- docs/_quarto.yml | 2 ++ docs/qembedio-embed-pdf.qmd | 4 ++-- docs/qembedio-embed-revealjs.qmd | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 docs/qembedio-embed-revealjs.qmd diff --git a/docs/_quarto.yml b/docs/_quarto.yml index 04c3ffa..f0998ba 100644 --- a/docs/_quarto.yml +++ b/docs/_quarto.yml @@ -19,6 +19,8 @@ website: contents: - text: "PDF" href: qembedio-embed-pdf.qmd + - text: "RevealJS" + href: qembedio-embed-revealjs.qmd - text: "HTML" - text: "Audio" - text: "Maps" diff --git a/docs/qembedio-embed-pdf.qmd b/docs/qembedio-embed-pdf.qmd index 4b21455..741c107 100644 --- a/docs/qembedio-embed-pdf.qmd +++ b/docs/qembedio-embed-pdf.qmd @@ -4,8 +4,8 @@ title: "Embed PDF" The `pdf` short code generates an embedded PDF object for HTML websites. You can use it with: -```{=markdown} -{{< pdf file="assets/test.pdf" >}} +```markdown +{{{< pdf file="assets/test.pdf" >}}} ``` For example, we can show the `test.pdf` with: diff --git a/docs/qembedio-embed-revealjs.qmd b/docs/qembedio-embed-revealjs.qmd new file mode 100644 index 0000000..98bc516 --- /dev/null +++ b/docs/qembedio-embed-revealjs.qmd @@ -0,0 +1,14 @@ +--- +title: "Embed RevealJS Slides" +--- + +The `revealjs` short code generates an embedded `