From 7d309319f023ca6be6fc2efb11dcb370c0735818 Mon Sep 17 00:00:00 2001 From: tangly Date: Mon, 19 Sep 2022 09:48:48 +0800 Subject: [PATCH] =?UTF-8?q?R=E8=AF=AD=E8=A8=80=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/NotionPage.js b/components/NotionPage.js index 1c902521..ac6440c9 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -7,6 +7,9 @@ import Image from 'next/image' import Link from 'next/link' import { Code } from 'react-notion-x/build/third-party/code' +// 支持更多的自定义语言 +import 'prismjs/components/prism-r.js' + const Collection = dynamic(() => import('react-notion-x/build/third-party/collection').then((m) => m.Collection), { ssr: true } )