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
 | 
			
		||||
# intellij stuff
 | 
			
		||||
.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
 | 
			
		||||
import LinkAttributes from 'markdown-it-link-attributes'
 | 
			
		||||
 | 
			
		||||
const markdownWrapperClasses = 'prose prose-sm m-auto text-left'
 | 
			
		||||
 | 
			
		||||
export default defineConfig({
 | 
			
		||||
  resolve: {
 | 
			
		||||
    alias: {
 | 
			
		||||
@ -34,7 +36,7 @@ export default defineConfig({
 | 
			
		||||
 | 
			
		||||
    // https://github.com/antfu/vite-plugin-md
 | 
			
		||||
    Markdown({
 | 
			
		||||
      wrapperClasses: 'prose prose-sm m-auto text-left',
 | 
			
		||||
      wrapperClasses: markdownWrapperClasses,
 | 
			
		||||
      headEnabled: true,
 | 
			
		||||
      markdownItSetup(md) {
 | 
			
		||||
        // https://prismjs.com/
 | 
			
		||||
@ -75,7 +77,7 @@ export default defineConfig({
 | 
			
		||||
 | 
			
		||||
    // https://github.com/antfu/vite-plugin-windicss
 | 
			
		||||
    WindiCSS({
 | 
			
		||||
      safelist: 'prose prose-sm m-auto text-left',
 | 
			
		||||
      safelist: markdownWrapperClasses,
 | 
			
		||||
    }),
 | 
			
		||||
 | 
			
		||||
    // https://github.com/antfu/vite-plugin-pwa
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user