Skip to content

Commit

Permalink
Merge branch 'main' into dev-vue2-to-vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Aug 15, 2024
2 parents b25ceb6 + 8d12093 commit 570ca35
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function setColorWithCustomTemplate(theme, color) {
export function setFontSizeWithTemplate(template) {
return function (fontSize) {
const customTheme = JSON.parse(JSON.stringify(template))
customTheme.block.h1[`font-size`] = `${fontSize * 1.14}px`
customTheme.block.h2[`font-size`] = `${fontSize * 1.1}px`
customTheme.block.h3[`font-size`] = `${fontSize}px`
customTheme.block.h1[`font-size`] = `${fontSize * 1.2}px`
customTheme.block.h2[`font-size`] = `${fontSize * 1.2}px`
customTheme.block.h3[`font-size`] = `${fontSize * 1.1}px`
customTheme.block.h4[`font-size`] = `${fontSize}px`
return customTheme
}
Expand Down Expand Up @@ -292,9 +292,7 @@ export function exportHTML() {

// 判断是否是包裹代码块的 code 元素
function isCode(element) {
return (
element.tagName === `CODE`
)
return element.tagName === `CODE`
}

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

0 comments on commit 570ca35

Please sign in to comment.