Skip to content

Commit

Permalink
fix: support html-body class name for HtmlPreviewer (#72)
Browse files Browse the repository at this point in the history
* chore: use generator

* support html-body
  • Loading branch information
2nthony authored Jan 24, 2024
1 parent 65e8403 commit 5788755
Show file tree
Hide file tree
Showing 4 changed files with 1,438 additions and 14 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
},
"scripts": {
"dev": "vite",
"gen-css": "github-markdown-css --type auto --root-selector '.markdown-body, .html-body' > src/github-markdown.css",
"build:demo": "tsc && vite build",
"build": "tsup",
"build": "npm run gen-css && tsup",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -30,7 +31,6 @@
}
},
"dependencies": {
"github-markdown-css": "^5.5.0",
"marked": "^4.0.17",
"prismjs": "^1.28.0",
"sanitize-html": "^2.7.0"
Expand All @@ -49,6 +49,7 @@
"@types/styled-components": "^5.1.25",
"@vitejs/plugin-react": "^1.3.0",
"autoprefixer": "^10.4.16",
"generate-github-markdown-css": "^6.2.0",
"postcss": "^8.4.33",
"postcss-nesting": "^12.0.2",
"prettier": "^2.7.1",
Expand Down
Loading

0 comments on commit 5788755

Please sign in to comment.