Prose styles for long-form content: headings, paragraphs, lists, quotes, tables, rules, and inline code, all at one line height. A heading that links to itself is a norn-heading-anchor, which styles its own # and takes the same space above as a plain heading. Wrap the content in it: <norn-rich-text><template webc:nokeep @html="content"></template></norn-rich-text>. Rules in tables and dividers and the quote bar take --norn-ui-border-color, and inline code --norn-surface-code.
<norn-rich-text>
a container, from
@allons-y/webc-patterns
<norn-rich-text>
<p>A paragraph with <code>inline code</code> and a <a href="https://example.com/">link</a>.</p>
<h2>A second-level heading</h2>
<ul>
<li>A list item</li>
<li>Run the build once before changing any file, so the output folder exists and the cache is warm</li>
</ul>
<ol>
<li>First</li>
<li>Second</li>
</ol>
<h3>A third-level heading</h3>
<blockquote>Simple things should be simple, and complex things should be possible.</blockquote>
<table>
<thead><tr><th>Option</th><th>Default</th></tr></thead>
<tbody>
<tr><td><code>exclude</code></td><td><code>[]</code></td></tr>
<tr><td><code>prefix</code></td><td><code>"/"</code></td></tr>
</tbody>
</table>
<hr />
<p>After the rule.</p>
</norn-rich-text>
Copy {name} to clipboardCopyCopiedCopy failedhtml code
<norn-rich-text>
<norn-heading-anchor @slug="first">A linked second-level heading</norn-heading-anchor>
<p>A short line of body text.</p>
<norn-heading-anchor @slug="second" :@level="3">A linked third-level heading</norn-heading-anchor>
<p>A short line of body text.</p>
</norn-rich-text>
Copy {name} to clipboardCopyCopiedCopy failedhtml code
<norn-rich-text>
<blockquote>Simple things should be simple, and complex things should be possible.</blockquote>
<blockquote>
<p>The power of the Web is in its universality.</p>
<cite>Tim Berners-Lee</cite>
</blockquote>
<figure>
<blockquote><p>Any sufficiently advanced technology is indistinguishable from magic.</p></blockquote>
<figcaption>Arthur C. Clarke, <cite>Profiles of the Future</cite></figcaption>
</figure>
</norn-rich-text>
Copy {name} to clipboardCopyCopiedCopy failedhtml code