File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,17 @@ Most common block types are supported. We happily accept pull requests to add su
117
117
| Checkbox | ❌ Missing | |
118
118
| Table Of Contents | ❌ Missing | |
119
119
120
+ ## Block Type Specific Caveats
121
+
122
+ When using a code block in your Notion page, ` NotionRenderer ` will use ` prismjs ` to detect the language of the code block.
123
+ By default in most project, ` prismjs ` won't include all language packages in the minified build of your project.
124
+ This tends to be an issue for those using ` react-notion ` in a ` next.js ` project.
125
+ To ensure the programming language is correctly highlighted in production builds, one should explicitly imported into the project.
126
+
127
+ ``` jsx
128
+ import ' prismjs/components/prism-{language}' ;
129
+ ```
130
+
120
131
## Credits
121
132
122
133
- [ Tobias Lins] ( https://tobi.sh ) – Idea, Code
You can’t perform that action at this time.
0 commit comments