Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
taga3s committed Dec 18, 2024
1 parent 12ca0ba commit 53de20b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/packages/rehype-github-embed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const rehypeGithubEmbed: Plugin<Option[], Root> = (options): Transformer<Root> =
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 });
}
Expand Down
2 changes: 1 addition & 1 deletion app/packages/rehype-github-embed/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Element } from "hast";
import type { Element } from "hast";
import { h } from "hastscript";

const extractOwner = (pathname: string): string => {
Expand Down

0 comments on commit 53de20b

Please sign in to comment.