Skip to content

Commit 54e8769

Browse files
authored
Merge pull request #1559 from mcanouil/docs/lipsum-random
docs: add `random=true` to `lipsum` shortcode
2 parents abaa274 + 3aa73a7 commit 54e8769

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/authoring/lipsum.qmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ 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` produces placeholder text in a predictable manner[^1]. This means that the same parameters will always yield identical text.
35+
However, you can choose to set `random=true` to generate a paragraph or a random collection of paragraphs.
36+
37+
38+
- `{{{< lipsum 1 random=true >}}}`: This will generate a single paragraph of random lorem ipsum text.
39+
40+
[^1]: Since Quarto 1.7.14. Earlier versions of Quarto generate random text.

0 commit comments

Comments
 (0)