chore: support blockquote dark mode & simplify markdown wrapper (#151)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
676d01be6c
commit
9df34aa8c1
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ dist-ssr
|
|||||||
node_modules
|
node_modules
|
||||||
# intellij stuff
|
# intellij stuff
|
||||||
.idea/
|
.idea/
|
||||||
|
# logs
|
||||||
|
*.log
|
||||||
|
@ -18,4 +18,4 @@ function vitesse() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Check out the [GitHub repo](https://github.com/antfu/vitesse) for more details.
|
> Check out the [GitHub repo](https://github.com/antfu/vitesse) for more details.
|
||||||
|
@ -13,6 +13,8 @@ import Prism from 'markdown-it-prism'
|
|||||||
// @ts-expect-error missing types
|
// @ts-expect-error missing types
|
||||||
import LinkAttributes from 'markdown-it-link-attributes'
|
import LinkAttributes from 'markdown-it-link-attributes'
|
||||||
|
|
||||||
|
const markdownWrapperClasses = 'prose prose-sm m-auto text-left'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
@ -34,7 +36,7 @@ export default defineConfig({
|
|||||||
|
|
||||||
// https://github.com/antfu/vite-plugin-md
|
// https://github.com/antfu/vite-plugin-md
|
||||||
Markdown({
|
Markdown({
|
||||||
wrapperClasses: 'prose prose-sm m-auto text-left',
|
wrapperClasses: markdownWrapperClasses,
|
||||||
headEnabled: true,
|
headEnabled: true,
|
||||||
markdownItSetup(md) {
|
markdownItSetup(md) {
|
||||||
// https://prismjs.com/
|
// https://prismjs.com/
|
||||||
@ -75,7 +77,7 @@ export default defineConfig({
|
|||||||
|
|
||||||
// https://github.com/antfu/vite-plugin-windicss
|
// https://github.com/antfu/vite-plugin-windicss
|
||||||
WindiCSS({
|
WindiCSS({
|
||||||
safelist: 'prose prose-sm m-auto text-left',
|
safelist: markdownWrapperClasses,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// https://github.com/antfu/vite-plugin-pwa
|
// https://github.com/antfu/vite-plugin-pwa
|
||||||
|
Loading…
Reference in New Issue
Block a user