-
Notifications
You must be signed in to change notification settings - Fork 0
/
preprocessors.js
28 lines (26 loc) · 1 KB
/
preprocessors.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
import * as path from 'path'
import { mdsvex } from 'mdsvex'
// const autoPreprocess = require('svelte-preprocess');
module.exports = [
mdsvex({
extension: '.md', // the default is '.svexy', if you lack taste, you might want to change it
// layout: path.join(__dirname, './src/templates/index.svelte'), // this needs to be an absolute path
// layout: '../../templates/index.js', // this needs to be an absolute path
// parser: md => md.use(SomePlugin), // you can add markdown-it plugins if the feeling takes you
// you can add markdown-it options here, html is always true
// markdownOptions: {
// typographer: true,
// linkify: true,
// highlight: (str, lang) => whatever(str, lang), // this should be a real function if you want to highlight
// },
}),
// autoPreprocess({
// typescript: {
// compilerOptions: {
// target: 'es2019',
// baseUrl: './src',
// },
// transpileOnly: true,
// },
// }),
]