mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
code 调整
This commit is contained in:
@@ -158,7 +158,7 @@ function renderPrismMac() {
|
||||
const container = document?.getElementById('notion-article')
|
||||
|
||||
// Add line numbers
|
||||
if (BLOG.CODE_LINE_NUMBERS === 'true') {
|
||||
if (JSON.parse(BLOG.CODE_LINE_NUMBERS)) {
|
||||
const codeBlocks = container?.getElementsByTagName('pre')
|
||||
if (codeBlocks) {
|
||||
Array.from(codeBlocks).forEach(item => {
|
||||
@@ -192,7 +192,7 @@ function renderPrismMac() {
|
||||
}
|
||||
|
||||
// 折叠代码行号bug
|
||||
if (BLOG.CODE_LINE_NUMBERS === 'true') {
|
||||
if (JSON.parse(BLOG.CODE_LINE_NUMBERS)) {
|
||||
fixCodeLineStyle()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user