diff --git a/app/packages/rehype-github-embed/index.ts b/app/packages/rehype-github-embed/index.ts index ab02ad6..0b7acda 100644 --- a/app/packages/rehype-github-embed/index.ts +++ b/app/packages/rehype-github-embed/index.ts @@ -78,7 +78,7 @@ const rehypeGithubEmbed: Plugin = (options): Transformer = const element = createCodeBlock(title, href, code); parent.children[index] = element; } catch (error) { - const element = createErrBlock(`Something went wrong while rendering the code from GitHub`); + const element = createErrBlock("Something went wrong while rendering the code from GitHub"); parent.children[index] = element; console.error("Something went wrong", { cause: error }); } diff --git a/app/packages/rehype-github-embed/utils.ts b/app/packages/rehype-github-embed/utils.ts index 4b9f0b7..dd03ca3 100644 --- a/app/packages/rehype-github-embed/utils.ts +++ b/app/packages/rehype-github-embed/utils.ts @@ -1,4 +1,4 @@ -import { Element } from "hast"; +import type { Element } from "hast"; import { h } from "hastscript"; const extractOwner = (pathname: string): string => {