Prose test
Callouts
Note
Useful information that users should know, even when skimming content.
open by default
open here
closed by default
closed here
Tip
Helpful advice for doing things better or more easily.
Important
Key information users need to know to achieve their goal.
Warning
Urgent info that needs immediate user attention to avoid problems.
Caution
Advises about risks or negative outcomes of certain actions.
Code blocks
Bash with line highlight:
1cd my-project
2npm install
3npm run devJavaScript with diff annotation:
1function greet(name) {
2 console.log("Hello " + name)
3 console.log(`Hello, ${name}!`)
4}Go with focus:
1package main
2
3import "fmt"
4
5func main() {
6 fmt.Println("Hello, World!")
7}CSS with highlight:
1.prose {
2 max-width: 65ch;
3 line-height: 1.75;
4}1const foo = "fancy long string";
2const baz = "qux";Task list
- Unchecked item
- Completed item
- Something to figure out
- Important note
- Work in progress
- Cancelled task
- Forwarded / rescheduled
- Pro or addition
- Bookmark this
- Information
Details dropdowns
What is exclusive accordion?
<details> elements share the same name attribute, only one can be open at a time. This is native HTML — no JavaScript.How does the CSS-only chevron work?
› character in summary::before rotates 90° on details[open] using a CSS transition on transform. Pure CSS, zero JS.Footnotes
This text has a footnote. And another one here.
Tables
| Feature | Approach | JS needed |
|---|---|---|
| Callouts | Blockquote render hook | No |
| Syntax highlighting | Hugo Chroma | No |
| Task lists | replaceRE in template |
No |
| This is a fancy feature | The approach here is super long so that we are kinda forced to scroll horizontally | Let’s see how it behaves on a smaller screen so far |
| Footnote popovers | prose.js |
Yes (light) |
| Section link copy | prose.js |
Yes (light) |
| Code annotations | prose.js |
Yes (light) |
Blockquote
To be, or not to be, that is the question.
Whether ’tis nobler in the mind to suffer…
Inline formatting
Bold text — --tw-prose-bold colored.
Italic text — emphasis.
Strikethrough — removed content.
Highlighted text — amber tint via <mark>.
Underline — via <ins>, colored with brand accent.
H2O subscript and E=mc2 superscript.
FOSS (Free and Open Source Software) — abbreviation shortcode; the expansion shows on hover, keyboard focus, or tap (mobile), and screen readers always read it.
Section links
Hover any heading above to reveal the # anchor. Click it to copy the URL with hash to clipboard.