Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add random=true to lipsum shortcode #1559

Open
wants to merge 3 commits into
base: prerelease
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/authoring/lipsum.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ 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` produces placeholder text in a predictable manner[^1]. This means that the same parameters will always yield identical text.
However, you can choose to set `random=true` to generate a paragraph or a random collection of paragraphs.


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

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