[ Back to examples index ]
Generated by examples/headers-and-emphasis.js, covering h1-h6, hX, and every emphasis helper.
h1: The Document Title
h2: A Major Section
h3: A Subsection
h4: A Detail
h5: A Fine Detail
h6: The Finest Detail
hX with an explicit level
hX(3, …) is identical to h3(…)
Emphasis
- b() renders bold text
- i() renders italic text
- s() renders
strikethrough text
- ic() renders
inline code
cb() for a fenced code block, with an optional language for syntax highlighting
function greet(name) {
return `Hello, ${name}!`
}
Without a language, cb() still renders a plain fenced block:
No syntax highlighting here.