mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 07:26:46 +00:00
C++、C#代码支持
This commit is contained in:
@@ -49,6 +49,16 @@ function filterPostBlocks(id, pageBlock, slice) {
|
||||
continue
|
||||
}
|
||||
count++
|
||||
// 处理 c++ 和 c#两种语言
|
||||
if (b?.value?.type === 'code') {
|
||||
if (b?.value?.properties?.language?.[0][0] === 'C++') {
|
||||
b.value.properties.language[0][0] = 'cpp'
|
||||
}
|
||||
if (b?.value?.properties?.language?.[0][0] === 'C#') {
|
||||
b.value.properties.language[0][0] = 'csharp'
|
||||
}
|
||||
}
|
||||
|
||||
delete b?.role
|
||||
delete b?.value?.version
|
||||
delete b?.value?.created_by_table
|
||||
|
||||
Reference in New Issue
Block a user