Pattern: test harness — exercises every markdown construct the notebook renderer must handle, mixed with [[ref]] syntax.
Every kind the renderer must color correctly:
Plain text with bold, italic, bold-italic, and inline code. Also bold with code inside and italic with code inside.
Refs inside formatting: $2.8M[1] revenue, 180%[8] retention, not a ref [[fact:arr]] (code escapes refs).
Adjacent refs: 2.8M[1], 180[8], 18,200[9] — these should get comma separators.
Silent refs work too[3⚠] — just a footnote number.
code and a 4.91x[10] ratiocode, bold, italic, and $2.8M[1] all in one line| Metric | Value | Status |
|---|---|---|
| ARR | $2.8M[1] | good |
| NRR | 180%[8] | strong |
| LTV/CAC | 4.91x[10] | excellent |
| CAC | $18,200[9] | ok |
| Left | Center | Right |
|---|---|---|
| a | b | c |
| bold | italic | code |
This is a block quote with 2.8M[1] ARR. It spans multiple lines with formatting.
1arr
Nested quote with a ref: 180%[8] NRR is well above the true[3⚠] threshold.
8nrr 3retention-check ⚠
Fenced with info string:
def check_metrics(arr, nrr):
"""Not parsed for [[refs]] — raw code."""
return arr > 1_000_000 and nrr > 130
Fenced without info:
plain fenced block
no highlighting, no [[ref]] parsing
Above the break.
Below the break.
Another break style.
Text with ** ** empty bold and * * empty italic (should render literally).
Start of paragraph: 2.8M[1] is the ARR.
End of paragraph: the ARR is 2.8M[1]
Ref alone: 180[8]
The company has $2.8M[1] ARR with 180%[8] NRR, $89,400[12] LTV vs $18,200[9] CAC giving 4.91x[10] ratio and $8.2M[11] cash.
$2.8M[1] with dollar prefix, 180%[8] with percent suffix, 4.91x[10] with x suffix.
All checks pass[3⚠] and metrics look healthy.
$2.8M[1] ARR | 180%[8] NRR | 4.91x[10] LTV/CAC — strong fundamentals with $8.2M[11] runway.
An alias valid in a code block must be valid in a prose ref — the alias here is deliberately different from the module name (regression case for issue #20, where alias-qualified refs silently degraded to plain text).
Aliased ref: $245,000[13] MRR. Aliased with suffix: 340%[14] YoY. Module-qualified still works: $2.1M[15] enterprise ARR. Adjacent aliased refs: 2.4M[16], 480,000[17] — comma-separated like any others. Silent run collapses to one bracket: metrics hold[13, 16, 17] — three footnotes, one superscript.