mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
feat: add remark widont extension
Idea from this article: https://eatmon.co/blog/remove-runts-markdown/
This commit is contained in:
@@ -2,7 +2,7 @@ import mdx from '@astrojs/mdx';
|
||||
import preact from '@astrojs/preact';
|
||||
import tailwind from '@astrojs/tailwind';
|
||||
import { astroImageTools } from 'astro-imagetools';
|
||||
import { remarkReadingTime } from './src/utils';
|
||||
import { remarkReadingTime, remarkWidont } from './src/utils';
|
||||
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
@@ -17,7 +17,7 @@ export default defineConfig({
|
||||
},
|
||||
integrations: [
|
||||
mdx({
|
||||
remarkPlugins: [remarkReadingTime],
|
||||
remarkPlugins: [remarkReadingTime, remarkWidont],
|
||||
}),
|
||||
tailwind(),
|
||||
preact({ compat: true }),
|
||||
|
||||
Reference in New Issue
Block a user