Skip to content

Commit

Permalink
fix: unist type version mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
RyoJerryYu committed Apr 29, 2024
1 parent bf473e9 commit 0c03cae
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 491 deletions.
14 changes: 7 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const nextConfig = {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "i.creativecommons.org"
}
]
}
}
protocol: "https",
hostname: "i.creativecommons.org",
},
],
},
};

module.exports = nextConfig
module.exports = nextConfig;
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@excalidraw/excalidraw": "^0.17.3",
"@excalidraw/mermaid-to-excalidraw": "^0.3.0",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^2.3.0",
"@mdx-js/react": "^3.0.1",
"@mui/base": "5.0.0-beta.40",
"@mui/icons-material": "^5.15.15",
"@mui/material": "^5.15.15",
Expand All @@ -37,7 +37,7 @@
"mdast-util-mdx-jsx": "^3.1.2",
"mermaid": "10.9.0",
"next": "13.2.1",
"next-mdx-remote": "4.4.1",
"next-mdx-remote": "0.0.0-canary-20240321205249",
"next-sitemap": "4.2.3",
"next-themes": "^0.2.1",
"react": "18.2.0",
Expand All @@ -46,7 +46,7 @@
"react-i18next": "^12.2.0",
"react-syntax-highlighter": "^15.5.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-katex": "^6.0.2",
"rehype-katex": "^7.0.0",
"rehype-pretty-code": "^0.9.4",
"rehype-raw": "^6.1.1",
"rehype-slug": "^6.0.0",
Expand Down
82 changes: 0 additions & 82 deletions scripts/confirm/remark-vsmemo-img.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ const remarkObsidianRich: unified.Plugin<[RemarkObsidianRichOptions?]> = (
visit(
tree,
isObsidianRich,
(node: Paragraph, index: number, parent: Parent) => {
(node: Paragraph, index: number | undefined, parent: Parent) => {
if (index === undefined) {
console.error("index is undefined", node, parent);
throw new Error("index is undefined");
}
const props = parseObsidianRichProp(node);
for (let [matcher, componentName] of opts.matchers) {
if (!testMatcher(matcher, props)) {
Expand Down
Loading

0 comments on commit 0c03cae

Please sign in to comment.