-
Notifications
You must be signed in to change notification settings - Fork 30
/
mdsvex.config.js
55 lines (49 loc) · 1.22 KB
/
mdsvex.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* jshint esversion: 9 */
import remarkGithub from 'remark-github';
import remarkAbbr from 'remark-abbr';
import remarkGfm from 'remark-gfm';
import slug from 'rehype-slug';
import rehypePrism from 'rehype-prism-plus';
import rehypeHighlight from 'rehype-highlight';
import rehypeCodeTitles from 'rehype-code-titles';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis';
const config = {
extensions: ['.svelte.md', '.md', '.svx'],
smartypants: {
dashes: 'oldschool',
},
remarkPlugins: [
[
remarkGithub,
{
repository: 'https://github.com/navneetsharmaui/sveltekit-blog.git',
},
],
remarkAbbr,
remarkGfm,
],
rehypePlugins: [
slug,
rehypePrism,
rehypeHighlight,
rehypeCodeTitles,
rehypeAccessibleEmojis,
[
rehypeAutolinkHeadings,
{
behavior: 'wrap',
properties: {
class: 'anchor',
},
},
],
],
layout: {
blog: './src/lib/layouts/blog-layout/BlogLayout.svelte',
snippet: './src/lib/layouts/snippets-layout/SnippetsLayout.svelte',
newsletter: './src/lib/layouts/newsletter-layout/NewsLetterLayout.svelte',
_: './src/lib/layouts/blog-layout/BlogLayout.svelte',
},
};
export default config;