mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
折叠代码修补
This commit is contained in:
@@ -23,8 +23,8 @@ const PrismMac = () => {
|
||||
const observer = new MutationObserver(mutationsList => {
|
||||
for (const m of mutationsList) {
|
||||
if (m.target.nodeName === 'DETAILS') {
|
||||
const preCode = m.target.querySelector('pre.notion-code')
|
||||
if (preCode) {
|
||||
const preCodes = m.target.querySelectorAll('pre.notion-code')
|
||||
for (const preCode of preCodes) {
|
||||
Prism.plugins.lineNumbers.resize(preCode)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user