(text: string, ctx: ParseContext)
| 549 | } |
| 550 | |
| 551 | function buildCodeBlock(text: string, ctx: ParseContext): PreparedCodeBlock { |
| 552 | return { |
| 553 | ...createBlockBase(ctx), |
| 554 | kind: 'code', |
| 555 | lineHeight: CODE_LINE_HEIGHT, |
| 556 | prepared: prepareWithSegments(stripSingleTrailingNewline(text), `500 12px ${MONO_FAMILY}`, { |
| 557 | whiteSpace: 'pre-wrap', |
| 558 | }), |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | function buildRuleBlock(ctx: ParseContext): PreparedRuleBlock { |
| 563 | return { |
no test coverage detected
searching dependent graphs…