From c0ea18f37e916a96b1ccea6969be42c3304dc3d8 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Sun, 18 Feb 2024 19:14:30 +0100 Subject: [PATCH 1/2] Fix type --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index fa310d9..ba9e151 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,7 +34,7 @@ export const useRemarkSync = ( rehypeReactOptions, remarkPlugins = [], rehypePlugins = [], - }: UseRemarkOptions = {} + }: UseRemarkSyncOptions = {} ): ReactElement => unified() .use(remarkParse, remarkParseOptions) From 0607f1034824825d5f7752afd5b9c1bb98f1c26e Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Sun, 18 Feb 2024 21:38:25 +0100 Subject: [PATCH 2/2] Set legacy-peer-deps=true --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d08ca7..ad4823d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,11 @@ jobs: restore-keys: | nodeModules- + # TODO: Remove when CI supports new peer dep behavior + # https://github.com/remarkjs/react-remark/pull/74#issuecomment-1951415731 + - name: Set legacy-peer-deps=true + run: npm config set legacy-peer-deps=true + - name: Install dependencies run: npm ci env: