Commit 8abe42f
committed
style(site): JSDoc tags stay prose-sized but dimmer; highlight meander @example code
Two follow-ups from the previous annotation-prose pass:
1. The @tag markers were too small + monospace — read as UI
chrome, not inline prose. Drop the mono family + 0.88em
size; keep only `color: var(--muted)` so the tag reads at
the same weight and rhythm as surrounding text, just
dimmer (it's metadata, not loud).
2. Code blocks inside @example fences rendered plain because
meander hydrates them without a language- class, and our
global hljs init skips those to avoid auto-coloring random
text. cleanupAnnotationProse now runs hljs.highlightElement
on every <pre><code> inside .annotation-md. Auto-detection
is safe here: the content is always code by the JSDoc
contract, so the "plain-text mis-coloring" concern doesn't
apply.1 parent 1ed4c05 commit 8abe42f
2 files changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1017 | 1031 | | |
1018 | 1032 | | |
1019 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1686 | 1686 | | |
1687 | 1687 | | |
1688 | 1688 | | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1692 | 1693 | | |
1693 | 1694 | | |
1694 | | - | |
1695 | | - | |
1696 | | - | |
1697 | 1695 | | |
1698 | 1696 | | |
1699 | 1697 | | |
| |||
0 commit comments