mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
✨ feat: add admonition functionality and markdown-extended-features article, improve blockquote styling
This commit is contained in:
parent
ed527b3bab
commit
23ba4de450
13 changed files with 360 additions and 162 deletions
|
@ -7,11 +7,13 @@ import { defineConfig } from 'astro/config'
|
|||
import rehypeExternalLinks from 'rehype-external-links'
|
||||
import rehypeKatex from 'rehype-katex'
|
||||
import rehypeSlug from 'rehype-slug'
|
||||
import remarkDirective from 'remark-directive'
|
||||
import remarkMath from 'remark-math'
|
||||
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 { remarkAdmonitions } from './src/plugins/remark-admonitions.mjs'
|
||||
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs'
|
||||
|
||||
const url = themeConfig.site.url
|
||||
|
@ -61,8 +63,10 @@ export default defineConfig({
|
|||
],
|
||||
markdown: {
|
||||
remarkPlugins: [
|
||||
remarkDirective,
|
||||
remarkMath,
|
||||
remarkReadingTime,
|
||||
remarkAdmonitions,
|
||||
],
|
||||
rehypePlugins: [
|
||||
rehypeSlug,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue