forked from waffle-iron/hubot-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown.js
42 lines (41 loc) · 1.63 KB
/
markdown.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
/**
* Description:
* Configure global markdown
*
* Dependencies:
* None
*
* Configuration:
* HUBOT_LINE_END - Configuragble line-return character
* HUBOT_BLOCK_END - Configuragble string for ending blocks
* HUBOT_DOUBLE_RET - Configurable string for double line returns
* HUBOT_MD_LINK_BEGIN - Configurable string for the beginning of links
* HUBOT_MD_LINK_MID - Configurable string for the middle of links
* HUBOT_MD_LINK_END - Configurable string for the end of links
* HUBOT_MD_BOLD - Configurable string for denoting bolded text
* HUBOT_MD_ITALIC - Configurable string for denoting italicized text
* HUBOT_MD_UNDERLINE - Configurable string for denoting underlined text
* HUBOT_MD_STRIKE - Configurable string for denoting striked-through text
* HUBOT_MD_CODE_SINGLE - Configurable string for denoting text to be wrappt in in-line code
* HUBOT_MD_CODE_BLOCK - Configurable string for multi-line code blocks
*
* Commands:
* None
*
* Author:
* aliasfalse
*/
module.exports = {
doubleReturn : process.env.HUBOT_DOUBLE_RET || '\n\n',
lineEnd : process.env.HUBOT_LINE_END || '\n',
blockEnd : process.env.HUBOT_BLOCK_END || '---',
linkBegin : process.env.HUBOT_MD_LINK_BEGIN || '[',
linkMid : process.env.HUBOT_MD_LINK_MID || '](',
linkEnd : process.env.HUBOT_MD_LINK_END || ')',
bold : process.env.HUBOT_MD_BOLD || '**',
italic : process.env.HUBOT_MD_ITALIC || '*',
underline : process.env.HUBOT_MD_UNDERLINE || '__',
strike : process.env.HUBOT_MD_STRIKE || '~~',
codeLine : process.env.HUBOT_MD_CODE_SINGLE || '`',
codeMulti : process.env.HUBOT_MD_CODE_BLOCK || '```'
}