mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
fix: 修復 mathjax 行內公式 導致行距過密的 bug
fix: 修復更新mathjax 新版本後,mathjax 會溢出屏幕而不是顯示滾動條的 bug improvement: 避免沒更新主題文件而導致 anchor 配置報錯的問題 improvement: 更新 plugins.yml
This commit is contained in:
10
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
10
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -16,6 +16,16 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: modify
|
||||||
|
attributes:
|
||||||
|
label: 是否修改过主题文件? || Has the theme files been modified?
|
||||||
|
options:
|
||||||
|
- 是 (Yes)
|
||||||
|
- 不是 (No)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: browser
|
id: browser
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -120,5 +120,5 @@ script.
|
|||||||
},
|
},
|
||||||
isPhotoFigcaption: !{theme.photofigcaption},
|
isPhotoFigcaption: !{theme.photofigcaption},
|
||||||
islazyload: !{theme.lazyload.enable},
|
islazyload: !{theme.lazyload.enable},
|
||||||
isAnchor: !{theme.anchor.auto_update}
|
isAnchor: !{theme.anchor.auto_update || false}
|
||||||
}
|
}
|
||||||
|
|||||||
11
layout/includes/third-party/math/mathjax.pug
vendored
11
layout/includes/third-party/math/mathjax.pug
vendored
@@ -7,7 +7,7 @@ script.
|
|||||||
tags: 'ams'
|
tags: 'ams'
|
||||||
},
|
},
|
||||||
chtml: {
|
chtml: {
|
||||||
scale: 1.2
|
scale: 1.1
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
renderActions: {
|
renderActions: {
|
||||||
@@ -23,12 +23,11 @@ script.
|
|||||||
}
|
}
|
||||||
}, ''],
|
}, ''],
|
||||||
insertScript: [200, () => {
|
insertScript: [200, () => {
|
||||||
document.querySelectorAll('mjx-container:not\([display]\)').forEach(node => {
|
document.querySelectorAll('mjx-container').forEach(node => {
|
||||||
const target = node.parentNode
|
if (node.hasAttribute('display')) {
|
||||||
if (target.nodeName.toLowerCase() === 'li') {
|
btf.wrap(node, 'div', { class: 'mathjax-overflow' })
|
||||||
target.parentNode.classList.add('has-jax')
|
|
||||||
} else {
|
} else {
|
||||||
target.classList.add('has-jax')
|
btf.wrap(node, 'span', { class: 'mathjax-overflow' })
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, '', false]
|
}, '', false]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "4.5.0",
|
"version": "4.5.1",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
10
plugins.yml
10
plugins.yml
@@ -5,7 +5,7 @@ algolia_search_v4:
|
|||||||
instantsearch_v4:
|
instantsearch_v4:
|
||||||
name: instantsearch.js
|
name: instantsearch.js
|
||||||
file: dist/instantsearch.production.min.js
|
file: dist/instantsearch.production.min.js
|
||||||
version: 4.48.1
|
version: 4.49.0
|
||||||
pjax:
|
pjax:
|
||||||
name: pjax
|
name: pjax
|
||||||
file: pjax.min.js
|
file: pjax.min.js
|
||||||
@@ -64,12 +64,12 @@ katex:
|
|||||||
name: katex
|
name: katex
|
||||||
file: dist/katex.min.css
|
file: dist/katex.min.css
|
||||||
other_name: KaTeX
|
other_name: KaTeX
|
||||||
version: 0.16.2
|
version: 0.16.3
|
||||||
katex_copytex:
|
katex_copytex:
|
||||||
name: katex
|
name: katex
|
||||||
file: dist/contrib/copy-tex.min.js
|
file: dist/contrib/copy-tex.min.js
|
||||||
other_name: KaTeX
|
other_name: KaTeX
|
||||||
version: 0.16.2
|
version: 0.16.3
|
||||||
mermaid:
|
mermaid:
|
||||||
name: mermaid
|
name: mermaid
|
||||||
file: dist/mermaid.min.js
|
file: dist/mermaid.min.js
|
||||||
@@ -183,11 +183,11 @@ prismjs_autoloader:
|
|||||||
artalk_js:
|
artalk_js:
|
||||||
name: artalk
|
name: artalk
|
||||||
file: dist/Artalk.js
|
file: dist/Artalk.js
|
||||||
version: 2.4.2
|
version: 2.4.3
|
||||||
artalk_css:
|
artalk_css:
|
||||||
name: artalk
|
name: artalk
|
||||||
file: dist/Artalk.css
|
file: dist/Artalk.css
|
||||||
version: 2.4.2
|
version: 2.4.3
|
||||||
pace_js:
|
pace_js:
|
||||||
name: pace-js
|
name: pace-js
|
||||||
other_name: pace
|
other_name: pace
|
||||||
|
|||||||
@@ -81,12 +81,16 @@ if hexo-config('waline.bg')
|
|||||||
&::-webkit-scrollbar
|
&::-webkit-scrollbar
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
// mathjax
|
// Mathjax
|
||||||
mjx-container[display],
|
.mathjax-overflow
|
||||||
.has-jax
|
|
||||||
overflow-x: auto
|
overflow-x: auto
|
||||||
overflow-y: hidden
|
overflow-y: hidden
|
||||||
line-height: normal !important
|
|
||||||
|
span.mathjax-overflow
|
||||||
|
display: inline-block
|
||||||
|
padding: 0 2px
|
||||||
|
max-width: 100%
|
||||||
|
vertical-align: bottom
|
||||||
|
|
||||||
.aplayer
|
.aplayer
|
||||||
color: $font-black
|
color: $font-black
|
||||||
|
|||||||
Reference in New Issue
Block a user