Skip to content

Commit 738edb2

Browse files
committed
clean up
1 parent 12fbc2f commit 738edb2

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/code/src/Code.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class myClass {
5454
}
5555
5656
function greeting(entity) {
57-
return \`Hello, \${entity}! Cras justo odio, dapibus ac {{facilisis}} in, egestas eget quam. Vestibulum id ligula porta felis euismod semper.\`;
57+
return \`Hello, \${entity}! Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper.\`;
5858
}
5959
6060
console.log(greeting('World'));

packages/code/src/renderingPlugin/renderingPlugin.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ export function LineTableRow({
170170
? palette.gray.light3
171171
: palette.yellow.dark2;
172172

173-
// console.log({ children });
174-
175173
return (
176174
<tr className={cx({ [getHighlightedRowStyle(darkMode)]: highlighted })}>
177175
{lineNumber && (
@@ -257,7 +255,7 @@ export function flattenNestedTree(
257255
if (str.startsWith('_') && str.endsWith('_')) {
258256
const removeUnderscores = str.slice(1, -1);
259257
return {
260-
kind: generateKindClassName('lg-custom'),
258+
kind: generateKindClassName(`${prefix}-custom`),
261259
children: [removeUnderscores],
262260
};
263261
}
@@ -380,8 +378,6 @@ export function TableContent({ lines }: TableContentProps) {
380378
useSyntaxContext();
381379
const trimmedLines = [...lines];
382380

383-
// console.log({ trimmedLines });
384-
385381
// Strip empty lines from the beginning of code blocks
386382
while (trimmedLines[0]?.length === 0) {
387383
trimmedLines.shift();
@@ -432,8 +428,6 @@ export function TableContent({ lines }: TableContentProps) {
432428
/>
433429
);
434430

435-
// console.log({ processedLine });
436-
437431
return (
438432
<LineTableRow
439433
key={currentLineNumber}

0 commit comments

Comments
 (0)