Skip to content

Commit fcd33fd

Browse files
style: auto-fix formatting
1 parent 01c184f commit fcd33fd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

showcase/shell-docs/src/components/mdx-code-block.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export function MdxCodeBlock(props: MdxCodeBlockProps) {
7070
(k) => isValidElement(k) && (k.type === "code" || k.type === "CODE"),
7171
);
7272
if (codeEl && isValidElement(codeEl)) {
73-
return extractText((codeEl.props as { children?: React.ReactNode }).children);
73+
return extractText(
74+
(codeEl.props as { children?: React.ReactNode }).children,
75+
);
7476
}
7577
return extractText(children);
7678
})();

showcase/shell-docs/src/lib/rehype-code-meta.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ function extractMetaValue(meta: string, key: string): string | undefined {
5555
* `code` element's className. rehype-highlight pushes both `hljs` and
5656
* `language-<name>` onto the array; we want just the `<name>` part.
5757
*/
58-
function readLanguageFromClassName(
59-
className: unknown,
60-
): string | undefined {
58+
function readLanguageFromClassName(className: unknown): string | undefined {
6159
if (!Array.isArray(className)) return undefined;
6260
for (const c of className) {
6361
if (typeof c !== "string") continue;

0 commit comments

Comments
 (0)