What the code block would render for one line: `class:text` per token.
(result: HighlightResult, line: number)
| 46 | |
| 47 | /** What the code block would render for one line: `class:text` per token. */ |
| 48 | function shape(result: HighlightResult, line: number): string[] { |
| 49 | return tokensOf(result, line).map((t) => `${t.cls}:${t.text}`); |
| 50 | } |
| 51 | |
| 52 | function lineRef(over: Partial<LineRef>): LineRef { |
| 53 | return { |
no test coverage detected