Created
March 22, 2016 15:17
-
-
Save runemadsen/6b82e7f82ddf1fb5d88b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ [Function: kramed] | |
setOptions: [Function], | |
options: [Function], | |
defaults: | |
{ gfm: true, | |
tables: true, | |
breaks: false, | |
pedantic: false, | |
sanitize: false, | |
smartLists: false, | |
mathjax: false, | |
silent: false, | |
highlight: null, | |
langPrefix: 'lang-', | |
smartypants: false, | |
headerPrefix: '', | |
headerAutoId: true, | |
xhtml: false, | |
renderer: Renderer { options: [Object] } }, | |
Parser: { [Function: Parser] parse: [Function] }, | |
parser: [Function], | |
Renderer: [Function: Renderer], | |
Lexer: | |
{ [Function: Lexer] | |
rules: | |
{ newline: /^\n+/, | |
code: /^((?: {4}|\t)[^\n]+\n*)+/, | |
fences: [Object], | |
yamlHeader: [Object], | |
hr: /^( *[-*_]){3,} *(?:\n|$)/, | |
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n|$)/, | |
nptable: [Object], | |
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n|$)/, | |
blockquote: /^( *>[^\n]+(\n(?! *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$))[^\n]+)*\n*)+/, | |
list: /^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n+(?=\1?(?:[-*_] *){3,}(?:\n+|$))|\n+(?= *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$))|\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) )\n*|\s*$)/, | |
html: /^ *(?:<!--[\s\S]*?--> *(?:\n|\s*$)|<((?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:\/|[^\w\s@]*@)\b)[\s\S]+?<\/\1> *(?:\n{2,}|\s*$)|<(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:\/|[^\w\s@]*@)\b(?:"[^"]*"|'[^']*'|[^'">])*?> *(?:\n{2,}|\s*$))/, | |
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$)/, | |
footnote: /^\[\^([^\]]+)\]: ([^\n]+)/, | |
table: [Object], | |
paragraph: /^((?:[^\n]+\n?(?!( *[-*_]){3,} *(?:\n|$)| *(#{1,6}) *([^\n]+?) *#* *(?:\n|$)|([^\n]+)\n *(=|-){2,} *(?:\n|$)|( *>[^\n]+(\n(?! *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$))[^\n]+)*\n*)+|<(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:\/|[^\w\s@]*@)\b| *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$)| *(\${2,}) *([\s\S]+?)\s*\1 *(?:\n|$)))+)\n*/, | |
text: /^[^\n]+/, | |
math: /^ *(\${2,}) *([\s\S]+?)\s*\1 *(?:\n|$)/, | |
_bullet: /(?:[*+-]|\d+\.)/, | |
_item: /^( *)((?:[*+-]|\d+\.)) [^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*/gm, | |
_tag: '(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:\\/|[^\\w\\s@]*@)\\b', | |
normal: [Object], | |
gfm: [Object], | |
tables: [Object] }, | |
lex: [Function] }, | |
lexer: [Function], | |
InlineLexer: | |
{ [Function: InlineLexer] | |
rules: | |
{ escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/, | |
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/, | |
url: [Object], | |
html: /^<!--[\s\S]*?-->|^<(\w+(?!:\/|[^\w\s@]*@)\b)*?(?:"[^"]*"|'[^']*'|[^'">])*?>([\s\S]*?)?<\/\1>|^<(\w+(?!:\/|[^\w\s@]*@)\b)(?:"[^"]*"|'[^']*'|[^'">])*?>/, | |
link: /^!?\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*\)/, | |
reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\s*\[([^\]]*)\]/, | |
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, | |
reffn: /^!?\[\^((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]/, | |
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, | |
em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/, | |
code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, | |
br: /^ {2,}\n(?!\s*$)/, | |
del: [Object], | |
text: /^[\s\S]+?(?=[\\<!\[_*`$]| {2,}\n|$)/, | |
math: /^\$\$\s*([\s\S]*?[^\$])\s*\$\$(?!\$)/, | |
_inside: /(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/, | |
_href: /\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/, | |
normal: [Object], | |
pedantic: [Object], | |
gfm: [Object], | |
gitbook: [Object], | |
breaks: [Object] }, | |
output: [Function] }, | |
inlineLexer: [Function], | |
parse: [Circular] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ [Function: kramed] | |
setOptions: [Function], | |
options: [Function], | |
defaults: | |
{ gfm: true, | |
tables: true, | |
breaks: false, | |
pedantic: false, | |
sanitize: false, | |
smartLists: false, | |
mathjax: false, | |
silent: false, | |
highlight: null, | |
langPrefix: 'lang-', | |
smartypants: false, | |
headerPrefix: '', | |
headerAutoId: true, | |
xhtml: false, | |
renderer: Renderer { options: [Object] } }, | |
Parser: { [Function: Parser] parse: [Function] }, | |
parser: [Function], | |
Renderer: [Function: Renderer], | |
Lexer: | |
{ [Function: Lexer] | |
rules: | |
{ newline: /^\n+/, | |
code: /^((?: {4}|\t)[^\n]+\n*)+/, | |
fences: [Object], | |
yamlHeader: [Object], | |
hr: /^( *[-*_]){3,} *(?:\n|$)/, | |
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n|$)/, | |
nptable: [Object], | |
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n|$)/, | |
blockquote: /^( *>[^\n]+(\n(?! *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$))[^\n]+)*\n*)+/, | |
list: /^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n+(?=\1?(?:[-*_] *){3,}(?:\n+|$))|\n+(?= *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$))|\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) )\n*|\s*$)/, | |
html: /^ *(?:<!--[\s\S]*?--> *(?:\n|\s*$)|<((?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:\/|[^\w\s@]*@)\b)[\s\S]+?<\/\1> *(?:\n{2,}|\s*$)|<(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:\/|[^\w\s@]*@)\b(?:"[^"]*"|'[^']*'|[^'">])*?> *(?:\n{2,}|\s*$))/, | |
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$)/, | |
footnote: /^\[\^([^\]]+)\]: ([^\n]+)/, | |
table: [Object], | |
paragraph: /^((?:[^\n]+\n?(?!( *[-*_]){3,} *(?:\n|$)| *(#{1,6}) *([^\n]+?) *#* *(?:\n|$)|([^\n]+)\n *(=|-){2,} *(?:\n|$)|( *>[^\n]+(\n(?! *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$))[^\n]+)*\n*)+|<(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\b)\w+(?!:\/|[^\w\s@]*@)\b| *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n|$)| *(\${2,}) *([\s\S]+?)\s*\1 *(?:\n|$)))+)\n*/, | |
text: /^[^\n]+/, | |
math: /^ *(\${2,}) *([\s\S]+?)\s*\1 *(?:\n|$)/, | |
_bullet: /(?:[*+-]|\d+\.)/, | |
_item: /^( *)((?:[*+-]|\d+\.)) [^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*/gm, | |
_tag: '(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:\\/|[^\\w\\s@]*@)\\b', | |
normal: [Object], | |
gfm: [Object], | |
tables: [Object] }, | |
lex: [Function] }, | |
lexer: [Function], | |
InlineLexer: | |
{ [Function: InlineLexer] | |
rules: | |
{ escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/, | |
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/, | |
url: [Object], | |
html: /^<!--[\s\S]*?-->|^<(\w+(?!:\/|[^\w\s@]*@)\b)*?(?:"[^"]*"|'[^']*'|[^'">])*?>([\s\S]*?)?<\/\1>|^<(\w+(?!:\/|[^\w\s@]*@)\b)(?:"[^"]*"|'[^']*'|[^'">])*?>/, | |
link: /^!?\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*\)/, | |
reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\s*\[([^\]]*)\]/, | |
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, | |
reffn: /^!?\[\^((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]/, | |
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, | |
em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/, | |
code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, | |
br: /^ {2,}\n(?!\s*$)/, | |
del: [Object], | |
text: /^[\s\S]+?(?=[\\<!\[_*`$]| {2,}\n|$)/, | |
math: /^\$\$\s*([\s\S]*?[^\$])\s*\$\$(?!\$)/, | |
_inside: /(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/, | |
_href: /\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/, | |
normal: [Object], | |
pedantic: [Object], | |
gfm: [Object], | |
gitbook: [Object], | |
breaks: [Object] }, | |
output: [Function] }, | |
inlineLexer: [Function], | |
parse: [Circular] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment