mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-08 12:07:06 +08:00
fix: 修正 ABCJS 渲染使用 textContent 以提高音樂譜顯示準確性
style: 移除多餘的換行符號以保持代碼整潔
This commit is contained in:
2
layout/includes/third-party/abcjs/abcjs.pug
vendored
2
layout/includes/third-party/abcjs/abcjs.pug
vendored
@@ -24,7 +24,7 @@ script.
|
||||
const options = { ...params, responsive: "resize" }
|
||||
|
||||
// Render the music score using ABCJS.renderAbc
|
||||
ABCJS.renderAbc(ele, ele.innerHTML, options)
|
||||
ABCJS.renderAbc(ele, ele.textContent, options)
|
||||
}
|
||||
}, 100)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user