mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
chore: add rehypeUnwrapImg plugin for image processing optimization, update katex resource path
This commit is contained in:
parent
110fad06ab
commit
55923f9fcc
8 changed files with 93 additions and 74 deletions
|
@ -15,6 +15,7 @@ import UnoCSS from 'unocss/astro'
|
|||
import { themeConfig } from './src/config'
|
||||
import { langMap } from './src/i18n/config'
|
||||
import { rehypeImgToFigure } from './src/plugins/rehype-img-to-figure.mjs'
|
||||
import { rehypeUnwrapImg } from './src/plugins/rehype-unwrap-img.mjs'
|
||||
import { remarkAdmonitions } from './src/plugins/remark-admonitions.mjs'
|
||||
import { remarkGithubCard } from './src/plugins/remark-github-card.mjs'
|
||||
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs'
|
||||
|
@ -70,6 +71,7 @@ export default defineConfig({
|
|||
rehypeKatex,
|
||||
rehypeSlug,
|
||||
rehypeImgToFigure,
|
||||
rehypeUnwrapImg, // must be after rehypeImgToFigure
|
||||
[
|
||||
rehypeAutolinkHeadings,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue