fix: 修復 mathjax 行內公式 導致行距過密的 bug

fix: 修復更新mathjax 新版本後,mathjax 會溢出屏幕而不是顯示滾動條的 bug
improvement: 避免沒更新主題文件而導致 anchor 配置報錯的問題
improvement: 更新 plugins.yml
pull/1121/head^2
Jerry 2 years ago
parent 21f71cd0f2
commit 5c0d578e4c

@ -16,6 +16,16 @@ body:
validations:
required: true
- type: dropdown
id: modify
attributes:
label: 是否修改过主题文件? || Has the theme files been modified?
options:
- 是 (Yes)
- 不是 (No)
validations:
required: true
- type: dropdown
id: browser
attributes:

@ -120,5 +120,5 @@ script.
},
isPhotoFigcaption: !{theme.photofigcaption},
islazyload: !{theme.lazyload.enable},
isAnchor: !{theme.anchor.auto_update}
isAnchor: !{theme.anchor.auto_update || false}
}

@ -7,7 +7,7 @@ script.
tags: 'ams'
},
chtml: {
scale: 1.2
scale: 1.1
},
options: {
renderActions: {
@ -23,12 +23,11 @@ script.
}
}, ''],
insertScript: [200, () => {
document.querySelectorAll('mjx-container:not\([display]\)').forEach(node => {
const target = node.parentNode
if (target.nodeName.toLowerCase() === 'li') {
target.parentNode.classList.add('has-jax')
document.querySelectorAll('mjx-container').forEach(node => {
if (node.hasAttribute('display')) {
btf.wrap(node, 'div', { class: 'mathjax-overflow' })
} else {
target.classList.add('has-jax')
btf.wrap(node, 'span', { class: 'mathjax-overflow' })
}
});
}, '', false]

@ -1,6 +1,6 @@
{
"name": "hexo-theme-butterfly",
"version": "4.5.0",
"version": "4.5.1",
"description": "A Simple and Card UI Design theme for Hexo",
"main": "package.json",
"scripts": {

@ -5,7 +5,7 @@ algolia_search_v4:
instantsearch_v4:
name: instantsearch.js
file: dist/instantsearch.production.min.js
version: 4.48.1
version: 4.49.0
pjax:
name: pjax
file: pjax.min.js
@ -64,12 +64,12 @@ katex:
name: katex
file: dist/katex.min.css
other_name: KaTeX
version: 0.16.2
version: 0.16.3
katex_copytex:
name: katex
file: dist/contrib/copy-tex.min.js
other_name: KaTeX
version: 0.16.2
version: 0.16.3
mermaid:
name: mermaid
file: dist/mermaid.min.js
@ -183,11 +183,11 @@ prismjs_autoloader:
artalk_js:
name: artalk
file: dist/Artalk.js
version: 2.4.2
version: 2.4.3
artalk_css:
name: artalk
file: dist/Artalk.css
version: 2.4.2
version: 2.4.3
pace_js:
name: pace-js
other_name: pace

@ -81,12 +81,16 @@ if hexo-config('waline.bg')
&::-webkit-scrollbar
display: none
// mathjax
mjx-container[display],
.has-jax
// Mathjax
.mathjax-overflow
overflow-x: auto
overflow-y: hidden
line-height: normal !important
span.mathjax-overflow
display: inline-block
padding: 0 2px
max-width: 100%
vertical-align: bottom
.aplayer
color: $font-black

Loading…
Cancel
Save