-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconstants.js
30 lines (25 loc) · 918 Bytes
/
constants.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
export const homePage = 'https://github.com/quilicicf/markdown-formatter'; // NOTE: must be the same as in package.json
export const bugPage = 'https://github.com/quilicicf/markdown-formatter/issues'; // NOTE: must be the same as in package.json
export const DEFAULT_TOC_OPTIONS = { min: 2, max: 4 };
export const TOC_START_MATCHER = /^<!-- TOC START(.*) -->$/;
export const TOC_END_MATCHER = /^<!-- TOC END(.*) -->$/;
export const WATERMARK_VALUES = {
NONE: 'none',
TOP: 'top',
TOC: 'toc',
};
export const WATERMARK_TOP = `<!-- Formatted by ${homePage} -->`;
export const WATERMARK_TOC = `<!-- TOC END: Formatted by ${homePage} -->`;
export const DEFAULT_MARKDOWN_FORMATTER_OPTIONS = {
watermark: WATERMARK_VALUES.NONE,
};
export const DEFAULT_STRINGIFY_OPTIONS = {
bullet: '*',
emphasis: '_',
fences: true,
gfm: true,
listItemIndent: 'one',
rule: '-',
ruleSpaces: false,
strong: '_',
};