({ token }: { token: ThemedToken })
| 64 | |
| 65 | // Token rendering component |
| 66 | const TokenSpan = ({ token }: { token: ThemedToken }) => ( |
| 67 | <span |
| 68 | className="dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)]" |
| 69 | style={ |
| 70 | { |
| 71 | backgroundColor: token.bgColor, |
| 72 | color: token.color, |
| 73 | fontStyle: isItalic(token.fontStyle) ? "italic" : undefined, |
| 74 | fontWeight: isBold(token.fontStyle) ? "bold" : undefined, |
| 75 | textDecoration: isUnderline(token.fontStyle) ? "underline" : undefined, |
| 76 | ...token.htmlStyle, |
| 77 | } as CSSProperties |
| 78 | } |
| 79 | > |
| 80 | {token.content} |
| 81 | </span> |
| 82 | ); |
| 83 | |
| 84 | // Line rendering component |
| 85 | const LineSpan = ({ |
nothing calls this directly
no test coverage detected