Skip to content

Commit

Permalink
Now using mdsvex-reading-time
Browse files Browse the repository at this point in the history
  • Loading branch information
RealA10N committed Jan 2, 2024
1 parent a50cc69 commit ac76758
Show file tree
Hide file tree
Showing 5 changed files with 530 additions and 55 deletions.
3 changes: 2 additions & 1 deletion mdsvex.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import rehypeKatexSvelte from 'rehype-katex-svelte';
import remarkMath from 'remark-math';
import readingTime from 'mdsvex-reading-time';

const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],
Expand All @@ -9,7 +10,7 @@ const config = defineConfig({
dashes: 'oldschool'
},

remarkPlugins: [remarkMath],
remarkPlugins: [[readingTime, { wpm: 185 }], remarkMath],
rehypePlugins: [rehypeKatexSvelte],
layout: 'src/routes/posts/_PostLayout.svelte'
});
Expand Down
Loading

0 comments on commit ac76758

Please sign in to comment.