timlrx / rehype-prism-plus

rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failed if I include the language

yordis opened this issue · comments

Repo: https://github.com/straw-hat-team/adr
Branch: yordis/add-website (important)
Usage: website/src/pages/adrs/[slug].tsx
File That Could Make it Fail: website/src/routes/adrs/routes/[slug]/routes/0000000001/index.mdx
URL: http://localhost:3000/adrs/0000000001


For some reason, if I include the language to the code-block then if fails,

Error: Build failed with 1 error:
_mdx_bundler_entry_point-73179c97-432a-46d2-b082-e985d451fa69.mdx:0:0: error: [plugin: esbuild-xdm] 
`

![Screen Shot 2021-10-31 at 6 23 48 AM](https://user-images.githubusercontent.com/4237280/139578173-5fcaeae9-09b6-45c7-98fe-dfb196084040.png)

![Screen Shot 2021-10-31 at 6 21 12 AM](https://user-images.githubusercontent.com/4237280/139578076-fd93647b-ed0d-4b7d-ad12-2ba25164cc68.png)
``

Make sure to register rehype-code-title after rehype-prism-plus