@@ -15,3 +15,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
| export const CodeBlock = ({ tokenLines, showLineNumbers = true, lineNumberStyle, autoWrap, theme, ...rest }) => { | ||
| return (_jsx("pre", { ...rest, style: { margin: 0, padding: 0, overflowX: "auto" }, children: _jsx("table", { style: { borderCollapse: "collapse", width: "100%" }, children: _jsx("tbody", { children: tokenLines.map((line, index) => (_jsxs("tr", { children: [showLineNumbers && (_jsx("td", { style: { | ||
| return (_jsx("pre", { ...rest, style: { margin: 0, padding: 0, overflowX: "auto" }, children: _jsx("table", { style: { borderCollapse: "collapse", width: "100%" }, children: _jsx("tbody", { children: tokenLines.map((line, index) => (_jsxs("tr", { style: { verticalAlign: "top" }, children: [showLineNumbers && (_jsx("td", { style: { | ||
| paddingInline: "0.5rem", | ||
@@ -18,0 +18,0 @@ textAlign: "right", |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "c063", | ||
| "version": "1.6.0", | ||
| "version": "1.6.1", | ||
| "description": "A React component for displaying code snippets with syntax highlighting.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -28,3 +28,3 @@ import { CodeBlockProps } from "../types/index"; | ||
| {tokenLines.map((line, index) => ( | ||
| <tr key={index}> | ||
| <tr key={index} style={{ verticalAlign: "top" }}> | ||
| {showLineNumbers && ( | ||
@@ -31,0 +31,0 @@ <td |
716949
0.01%