Skip to content

Commit

Permalink
docs: add random=true to lipsum shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed Feb 1, 2025
1 parent b30ca9b commit 067b78d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/authoring/lipsum.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ Here's an example of `lipsum` generating two paragraphs of text, by adding `{{{<

- `{{{< lipsum nparas >}}}`: `nparas` describes the number of paragraphs of placeholder text to include in the document.
- `{{{< lipsum start-end >}}}`: `start` and `end` are two numbers that describe the range of lorem ipsum paragraphs to include in the document.

`lipsum` generates the placeholder text in a deterministic way[^1], so the same parameters will always generate the same text, but using `random=true` will generate a paragraph or random set of paragraphs.

- `{{{< lipsum 1 random=true >}}}`: This will generate a single paragraph of random lorem ipsum text.

[^1]: Since 1.7.14. Earlier versions of Quarto generates random text.

0 comments on commit 067b78d

Please sign in to comment.