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: 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)