Skip to content

Commit 570ca35

Browse files
committed
Merge branch 'main' into dev-vue2-to-vue3
2 parents b25ceb6 + 8d12093 commit 570ca35

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/utils/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export function setColorWithCustomTemplate(theme, color) {
3434
export function setFontSizeWithTemplate(template) {
3535
return function (fontSize) {
3636
const customTheme = JSON.parse(JSON.stringify(template))
37-
customTheme.block.h1[`font-size`] = `${fontSize * 1.14}px`
38-
customTheme.block.h2[`font-size`] = `${fontSize * 1.1}px`
39-
customTheme.block.h3[`font-size`] = `${fontSize}px`
37+
customTheme.block.h1[`font-size`] = `${fontSize * 1.2}px`
38+
customTheme.block.h2[`font-size`] = `${fontSize * 1.2}px`
39+
customTheme.block.h3[`font-size`] = `${fontSize * 1.1}px`
4040
customTheme.block.h4[`font-size`] = `${fontSize}px`
4141
return customTheme
4242
}
@@ -292,9 +292,7 @@ export function exportHTML() {
292292

293293
// 判断是否是包裹代码块的 code 元素
294294
function isCode(element) {
295-
return (
296-
element.tagName === `CODE`
297-
)
295+
return element.tagName === `CODE`
298296
}
299297

300298
// 判断是否是包裹代码字符的 span 元素

0 commit comments

Comments
 (0)