Skip to content

Commit

Permalink
Add RevealJS shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 11, 2024
1 parent d758401 commit bfc5bcb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/qembedio-embed-pdf.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 14 additions & 0 deletions docs/qembedio-embed-revealjs.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Embed RevealJS Slides"
---

The `revealjs` short code generates an embedded `<iframe>` area for HTML websites. You can use it with:

```markdown
{{{< revealjs file="assets/slides-reveal.html" >}}}
```

For example, we can show the `slides-reveal.html` with:

{{< revealjs file="assets/slides-reveal.html" >}}

0 comments on commit bfc5bcb

Please sign in to comment.