Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Jan 23, 2025
1 parent 9521372 commit 7e38994
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
23 changes: 19 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"less": "^4.2.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.5.1",
"prettier": "3.4.2",
"prettier": "3.3.3",
"rollup-plugin-visualizer": "^5.12.0",
"shx": "^0.3.4",
"simple-git-hooks": "^2.11.1",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export function exportHTML(primaryColor: string) {
setStyles(element)

const htmlStr = element.innerHTML
.replaceAll(`var(--md-primary-color)`, primaryColor)
.replaceAll(/--md-primary-color:.+?;/g, ``)
.replace(`var(--md-primary-color)`, primaryColor)
.replace(/--md-primary-color:.+?;/g, ``)

const downLink = document.createElement(`a`)

Expand Down

0 comments on commit 7e38994

Please sign in to comment.