react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Bug: Re-introduce the patch for syntax highlighting issues regarding C++ and F#

Open powersagitar opened this issue 1 year ago • 2 comments
trafficstars

[!TIP] Please check out https://github.com/transitive-bullshit/nextjs-notion-starter-kit/pull/605 for a bandaid fix before this PR gets merged.

Description

@transitive-bullshit mentioned in #220 that this fix was introduced with the release of v6, but apparently it vanished from master, thus the same issue still persists.

This PR re-introduces the patch to address syntax highlighting issues caused by Notion-prism.js language identifier mismatch.

Please refer to https://github.com/transitive-bullshit/nextjs-notion-starter-kit/issues/309 and https://github.com/NotionX/react-notion-x/issues/220 for more context.

Notion Test Page ID

Before: Screenshot 2024-03-19 12 03 32

After: Screenshot 2024-03-19 11 58 14

https://powerium.notion.site/Decoding-Conditionals-A-Dive-into-if-else-switch-case-Lookup-Tables-and-Interfaces-19254846bcb64aac9c340e81518a9dac

powersagitar avatar Mar 19 '24 16:03 powersagitar

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-notion-x ✅ Ready (Inspect) Visit Preview Mar 19, 2024 4:09pm
react-notion-x-minimal-demo ✅ Ready (Inspect) Visit Preview Mar 19, 2024 4:09pm

vercel[bot] avatar Mar 19 '24 16:03 vercel[bot]

@transitive-bullshit

rimonhanna avatar May 23 '24 07:05 rimonhanna