Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneeza committed Feb 13, 2025
1 parent 12fbc2f commit 738edb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/code/src/Code.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class myClass {
}
function greeting(entity) {
return \`Hello, \${entity}! Cras justo odio, dapibus ac {{facilisis}} in, egestas eget quam. Vestibulum id ligula porta felis euismod semper.\`;
return \`Hello, \${entity}! Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper.\`;
}
console.log(greeting('World'));
Expand Down
8 changes: 1 addition & 7 deletions packages/code/src/renderingPlugin/renderingPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ export function LineTableRow({
? palette.gray.light3
: palette.yellow.dark2;

// console.log({ children });

return (
<tr className={cx({ [getHighlightedRowStyle(darkMode)]: highlighted })}>
{lineNumber && (
Expand Down Expand Up @@ -257,7 +255,7 @@ export function flattenNestedTree(
if (str.startsWith('_') && str.endsWith('_')) {
const removeUnderscores = str.slice(1, -1);
return {
kind: generateKindClassName('lg-custom'),
kind: generateKindClassName(`${prefix}-custom`),
children: [removeUnderscores],
};
}
Expand Down Expand Up @@ -380,8 +378,6 @@ export function TableContent({ lines }: TableContentProps) {
useSyntaxContext();
const trimmedLines = [...lines];

// console.log({ trimmedLines });

// Strip empty lines from the beginning of code blocks
while (trimmedLines[0]?.length === 0) {
trimmedLines.shift();
Expand Down Expand Up @@ -432,8 +428,6 @@ export function TableContent({ lines }: TableContentProps) {
/>
);

// console.log({ processedLine });

return (
<LineTableRow
key={currentLineNumber}
Expand Down

0 comments on commit 738edb2

Please sign in to comment.