Skip to content

Commit c68dcd2

Browse files
committed
add linting exception
1 parent 4482fcd commit c68dcd2

File tree

1 file changed

+2
-0
lines changed
  • app/web_development/tutorials/next-js-static-first-mdx-starterkit/code-highlighting-plugin

1 file changed

+2
-0
lines changed

app/web_development/tutorials/next-js-static-first-mdx-starterkit/code-highlighting-plugin/page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,12 @@ Line 8: we import the shiki "diff notation" transformer
763763
764764
Lines 22 to 24: add out shiki transformer to the rehype-pretty-code **transformers option**
765765
766+
{/* eslint-disable mdx/remark */}
766767
> [!NOTE]
767768
> we did set the "transformer matching algorithm" option () to v3 (as recommended in the transformers chapter of the [shiki v2 migration guide](https://shiki.style/blog/v2#transformers-matching-algorithm)) to get rid of the shiki deprecation notice:
768769
>
769770
> > [SHIKI DEPRECATE]: The default `matchAlgorithm: "v1"` is deprecated and will be removed in the future. Please explicitly set `matchAlgorithm: "v3"` in the transformer options.
771+
{/* eslint-enable mdx/remark */}
770772
771773
Next we edit our global.css to add styling for added and removed rows:
772774

0 commit comments

Comments
 (0)