mr_markdown_builder

[ Back to examples index ]


Headers & Emphasis

Generated by examples/headers-and-emphasis.js, covering h1-h6, hX, and every emphasis helper.

Headers

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(…)

hX(20, …) clamps down to h6, since markdown has no level-20 header

Emphasis

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.