mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 07:26:50 +00:00
修复汇编语言高亮,prismjs采用外部cdn加载
This commit is contained in:
@@ -72,7 +72,7 @@ function filterPostBlocks(id, pageBlock, slice) {
|
||||
continue
|
||||
}
|
||||
count++
|
||||
// 处理 c++ 和 c#两种语言
|
||||
// 处理 c++ 和 c#等语言名字映射
|
||||
if (b?.value?.type === 'code') {
|
||||
if (b?.value?.properties?.language?.[0][0] === 'C++') {
|
||||
b.value.properties.language[0][0] = 'cpp'
|
||||
@@ -80,6 +80,9 @@ function filterPostBlocks(id, pageBlock, slice) {
|
||||
if (b?.value?.properties?.language?.[0][0] === 'C#') {
|
||||
b.value.properties.language[0][0] = 'csharp'
|
||||
}
|
||||
if (b?.value?.properties?.language?.[0][0] === 'Assembly') {
|
||||
b.value.properties.language[0][0] = 'asm6502'
|
||||
}
|
||||
}
|
||||
|
||||
delete b?.role
|
||||
|
||||
Reference in New Issue
Block a user