-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js
75 lines (73 loc) · 2.35 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
'use strict'
const config = {
/// host
// host: '127.0.0.1',
hostname: 'localhost',
/// port for server
port: 4000,
/// browser settings per platform
browser: {
darwin: ['open'],
linux: ['x-www-browser'], // Default browser use `sudo update-alternatives --config x-www-browser` to change
win32: ['cmd.exe', '/C', 'start']
},
/// show only markdown files in browser folder view
filter: true,
/// options for `markedpp` see https://github.com/commenthol/markedpp
markedpp: {
gfm: true, // consider gfm fences
breaks: true, // render <br> tags for Table of Contents with numbered style
tags: true, // render pre-proc tags <!-- !command -->
level: 3, // default level for !toc and !numberheadings
minlevel: 1 // default minlevel for !toc and !numberheadings
},
/// options for `markdown-it` see https://github.com/markdown-it/markdown-it#api
markdownIt: {
html: true,
linkify: true,
typographer: false
},
confluencer: false, // disable confluencer by default
confluenceHtml: false, // use confluence html if enabled
/// add `markdown-it` plugins
markdownItPlugins: function (parser) {
return parser
.use(require('markdown-it-abbr'))
.use(require('markdown-it-admon'))
.use(require('markdown-it-attrs'))
.use(require('markdown-it-emoji').full)
.use(require('markdown-it-deflist'))
.use(require('markdown-it-footnote'))
.use(require('markdown-it-highlightjs'), {
auto: false,
register: {
plantuml: () => ({
name: 'plantuml',
aliases: [
'!plantuml',
'!plantuml(format=svg)',
'!plantuml(format=png)'
],
keywords: [],
contains: []
})
}
})
.use(require('@commenthol/markdown-it-katex'))
.use(require('markdown-it-mark'))
.use(require('markdown-it-multimd-table'), {
multiline: true,
rowspan: true,
headerless: true
})
.use(require('markdown-it-task-lists'))
.use(require('markdown-it-sub'))
.use(require('markdown-it-sup'))
// .use(require(other-plugin), {/* options */})
},
/// template settings
template: {
highlight: 'github' /// see available styles at https://github.com/highlightjs/highlight.js/tree/master/src/styles
}
}
module.exports = config