Skip to content

Commit 067b78d

Browse files
committed
docs: add random=true to lipsum shortcode
Fixes quarto-dev/quarto-cli#11664
1 parent b30ca9b commit 067b78d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/authoring/lipsum.qmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ Here's an example of `lipsum` generating two paragraphs of text, by adding `{{{<
3030

3131
- `{{{< lipsum nparas >}}}`: `nparas` describes the number of paragraphs of placeholder text to include in the document.
3232
- `{{{< lipsum start-end >}}}`: `start` and `end` are two numbers that describe the range of lorem ipsum paragraphs to include in the document.
33+
34+
`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.
35+
36+
- `{{{< lipsum 1 random=true >}}}`: This will generate a single paragraph of random lorem ipsum text.
37+
38+
[^1]: Since 1.7.14. Earlier versions of Quarto generates random text.

0 commit comments

Comments
 (0)