made with requirebin
Created
December 8, 2015 02:18
-
-
Save mauriciopoppe/f64654ccc16309c7e067 to your computer and use it in GitHub Desktop.
requirebin sketch
This file contains 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
var Remarkable = require('remarkable') | |
var md = new Remarkable() | |
console.log( | |
md.parse('# generator-babel\n\ | |
[![NPM version][npm-image]][npm-url]\n\ | |
[![Build Status][travis-image]][travis-url]\n\ | |
[![Dependency Status][depstat-image]][depstat-url]\n\ | |
> [Yeoman][yo] generator to setup [Babel][babel] effortlessly. ', {}) | |
) |
This file contains 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
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";module.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒","in":"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬","int":"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},{}],2:[function(require,module,exports){"use strict";var html_blocks={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(name){html_blocks[name]=true});module.exports=html_blocks},{}],3:[function(require,module,exports){"use strict";function replace(regex,options){regex=regex.source;options=options||"";return function self(name,val){if(!name){return new RegExp(regex,options)}val=val.source||val;regex=regex.replace(name,val);return self}}var attr_name=/[a-zA-Z_:][a-zA-Z0-9:._-]*/;var unquoted=/[^"'=<>`\x00-\x20]+/;var single_quoted=/'[^']*'/;var double_quoted=/"[^"]*"/;var attr_value=replace(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",unquoted)("single_quoted",single_quoted)("double_quoted",double_quoted)();var attribute=replace(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",attr_name)("attr_value",attr_value)();var open_tag=replace(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",attribute)();var close_tag=/<\/[A-Za-z][A-Za-z0-9]*\s*>/;var comment=/<!--([^-]+|[-][^-]+)*-->/;var processing=/<[?].*?[?]>/;var declaration=/<![A-Z]+\s+[^>]*>/;var cdata=/<!\[CDATA\[([^\]]+|\][^\]]|\]\][^>])*\]\]>/;var HTML_TAG_RE=replace(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",open_tag)("close_tag",close_tag)("comment",comment)("processing",processing)("declaration",declaration)("cdata",cdata)();module.exports.HTML_TAG_RE=HTML_TAG_RE},{}],4:[function(require,module,exports){"use strict";module.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"]},{}],5:[function(require,module,exports){"use strict";function typeOf(obj){return Object.prototype.toString.call(obj)}function isString(obj){return typeOf(obj)==="[object String]"}var hasOwn=Object.prototype.hasOwnProperty;function has(object,key){return object?hasOwn.call(object,key):false}function assign(obj){var sources=[].slice.call(arguments,1);sources.forEach(function(source){if(!source){return}if(typeof source!=="object"){throw new TypeError(source+"must be object")}Object.keys(source).forEach(function(key){obj[key]=source[key]})});return obj}var UNESCAPE_MD_RE=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function unescapeMd(str){if(str.indexOf("\\")<0){return str}return str.replace(UNESCAPE_MD_RE,"$1")}function isValidEntityCode(c){if(c>=55296&&c<=57343){return false}if(c>=64976&&c<=65007){return false}if((c&65535)===65535||(c&65535)===65534){return false}if(c>=0&&c<=8){return false}if(c===11){return false}if(c>=14&&c<=31){return false}if(c>=127&&c<=159){return false}if(c>1114111){return false}return true}function fromCodePoint(c){if(c>65535){c-=65536;var surrogate1=55296+(c>>10),surrogate2=56320+(c&1023);return String.fromCharCode(surrogate1,surrogate2)}return String.fromCharCode(c)}var NAMED_ENTITY_RE=/&([a-z#][a-z0-9]{1,31});/gi;var DIGITAL_ENTITY_TEST_RE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;var entities=require("./entities");function replaceEntityPattern(match,name){var code=0;if(has(entities,name)){return entities[name]}else if(name.charCodeAt(0)===35&&DIGITAL_ENTITY_TEST_RE.test(name)){code=name[1].toLowerCase()==="x"?parseInt(name.slice(2),16):parseInt(name.slice(1),10);if(isValidEntityCode(code)){return fromCodePoint(code)}}return match}function replaceEntities(str){if(str.indexOf("&")<0){return str}return str.replace(NAMED_ENTITY_RE,replaceEntityPattern)}var HTML_ESCAPE_TEST_RE=/[&<>"]/;var HTML_ESCAPE_REPLACE_RE=/[&<>"]/g;var HTML_REPLACEMENTS={"&":"&","<":"<",">":">",'"':"""};function replaceUnsafeChar(ch){return HTML_REPLACEMENTS[ch]}function escapeHtml(str){if(HTML_ESCAPE_TEST_RE.test(str)){return str.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar)}return str}exports.assign=assign;exports.isString=isString;exports.has=has;exports.unescapeMd=unescapeMd;exports.isValidEntityCode=isValidEntityCode;exports.fromCodePoint=fromCodePoint;exports.replaceEntities=replaceEntities;exports.escapeHtml=escapeHtml},{"./entities":1}],6:[function(require,module,exports){"use strict";module.exports={options:{html:true,xhtmlOut:true,breaks:false,langPrefix:"language-",linkify:false,typographer:false,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}},{}],7:[function(require,module,exports){"use strict";module.exports={options:{html:false,xhtmlOut:false,breaks:false,langPrefix:"language-",linkify:false,typographer:false,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","linkify","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"] | |
}}}},{}],8:[function(require,module,exports){"use strict";module.exports={options:{html:false,xhtmlOut:false,breaks:false,langPrefix:"language-",linkify:false,typographer:false,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}}},{}],9:[function(require,module,exports){"use strict";var replaceEntities=require("../common/utils").replaceEntities;module.exports=function normalizeLink(url){var normalized=replaceEntities(url);try{normalized=decodeURI(normalized)}catch(err){}return encodeURI(normalized)}},{"../common/utils":5}],10:[function(require,module,exports){"use strict";module.exports=function normalizeReference(str){return str.trim().replace(/\s+/g," ").toUpperCase()}},{}],11:[function(require,module,exports){"use strict";var normalizeLink=require("./normalize_link");var unescapeMd=require("../common/utils").unescapeMd;module.exports=function parseLinkDestination(state,pos){var code,level,link,start=pos,max=state.posMax;if(state.src.charCodeAt(pos)===60){pos++;while(pos<max){code=state.src.charCodeAt(pos);if(code===10){return false}if(code===62){link=normalizeLink(unescapeMd(state.src.slice(start+1,pos)));if(!state.parser.validateLink(link)){return false}state.pos=pos+1;state.linkContent=link;return true}if(code===92&&pos+1<max){pos+=2;continue}pos++}return false}level=0;while(pos<max){code=state.src.charCodeAt(pos);if(code===32){break}if(code<32||code===127){break}if(code===92&&pos+1<max){pos+=2;continue}if(code===40){level++;if(level>1){break}}if(code===41){level--;if(level<0){break}}pos++}if(start===pos){return false}link=normalizeLink(unescapeMd(state.src.slice(start,pos)));if(!state.parser.validateLink(link)){return false}state.linkContent=link;state.pos=pos;return true}},{"../common/utils":5,"./normalize_link":9}],12:[function(require,module,exports){"use strict";module.exports=function parseLinkLabel(state,start){var level,found,marker,labelEnd=-1,max=state.posMax,oldPos=state.pos,oldFlag=state.isInLabel;if(state.isInLabel){return-1}if(state.labelUnmatchedScopes){state.labelUnmatchedScopes--;return-1}state.pos=start+1;state.isInLabel=true;level=1;while(state.pos<max){marker=state.src.charCodeAt(state.pos);if(marker===91){level++}else if(marker===93){level--;if(level===0){found=true;break}}state.parser.skipToken(state)}if(found){labelEnd=state.pos;state.labelUnmatchedScopes=0}else{state.labelUnmatchedScopes=level-1}state.pos=oldPos;state.isInLabel=oldFlag;return labelEnd}},{}],13:[function(require,module,exports){"use strict";var unescapeMd=require("../common/utils").unescapeMd;module.exports=function parseLinkTitle(state,pos){var code,start=pos,max=state.posMax,marker=state.src.charCodeAt(pos);if(marker!==34&&marker!==39&&marker!==40){return false}pos++;if(marker===40){marker=41}while(pos<max){code=state.src.charCodeAt(pos);if(code===marker){state.pos=pos+1;state.linkContent=unescapeMd(state.src.slice(start+1,pos));return true}if(code===92&&pos+1<max){pos+=2;continue}pos++}return false}},{"../common/utils":5}],14:[function(require,module,exports){"use strict";var assign=require("./common/utils").assign;var Renderer=require("./renderer");var ParserCore=require("./parser_core");var ParserBlock=require("./parser_block");var ParserInline=require("./parser_inline");var Ruler=require("./ruler");var config={"default":require("./configs/default"),full:require("./configs/full"),commonmark:require("./configs/commonmark")};function StateCore(self,str,env){this.src=str;this.env=env;this.options=self.options;this.tokens=[];this.inlineMode=false;this.inline=self.inline;this.block=self.block;this.renderer=self.renderer;this.typographer=self.typographer}function Remarkable(preset,options){if(typeof preset!=="string"){options=preset;preset="default"}this.inline=new ParserInline;this.block=new ParserBlock;this.core=new ParserCore;this.renderer=new Renderer;this.ruler=new Ruler;this.options={};this.configure(config[preset]);this.set(options||{})}Remarkable.prototype.set=function(options){assign(this.options,options)};Remarkable.prototype.configure=function(presets){var self=this;if(!presets){throw new Error("Wrong `remarkable` preset, check name/content")}if(presets.options){self.set(presets.options)}if(presets.components){Object.keys(presets.components).forEach(function(name){if(presets.components[name].rules){self[name].ruler.enable(presets.components[name].rules,true)}})}};Remarkable.prototype.use=function(plugin,options){plugin(this,options);return this};Remarkable.prototype.parse=function(str,env){var state=new StateCore(this,str,env);this.core.process(state);return state.tokens};Remarkable.prototype.render=function(str,env){env=env||{};return this.renderer.render(this.parse(str,env),this.options,env)};Remarkable.prototype.parseInline=function(str,env){var state=new StateCore(this,str,env);state.inlineMode=true;this.core.process(state);return state.tokens};Remarkable.prototype.renderInline=function(str,env){env=env||{};return this.renderer.render(this.parseInline(str,env),this.options,env)};module.exports=Remarkable;module.exports.utils=require("./common/utils")},{"./common/utils":5,"./configs/commonmark":6,"./configs/default":7,"./configs/full":8,"./parser_block":15,"./parser_core":16,"./parser_inline":17,"./renderer":18,"./ruler":19}],15:[function(require,module,exports){"use strict";var Ruler=require("./ruler");var StateBlock=require("./rules_block/state_block");var _rules=[["code",require("./rules_block/code")],["fences",require("./rules_block/fences"),["paragraph","blockquote","list"]],["blockquote",require("./rules_block/blockquote"),["paragraph","blockquote","list"]],["hr",require("./rules_block/hr"),["paragraph","blockquote","list"]],["list",require("./rules_block/list"),["paragraph","blockquote"]],["footnote",require("./rules_block/footnote"),["paragraph"]],["heading",require("./rules_block/heading"),["paragraph","blockquote"]],["lheading",require("./rules_block/lheading")],["htmlblock",require("./rules_block/htmlblock"),["paragraph","blockquote"]],["table",require("./rules_block/table"),["paragraph"]],["deflist",require("./rules_block/deflist"),["paragraph"]],["paragraph",require("./rules_block/paragraph")]];function ParserBlock(){this.ruler=new Ruler;for(var i=0;i<_rules.length;i++){this.ruler.push(_rules[i][0],_rules[i][1],{alt:(_rules[i][2]||[]).slice()})}}ParserBlock.prototype.tokenize=function(state,startLine,endLine){var rules=this.ruler.getRules("");var len=rules.length;var line=startLine;var hasEmptyLines=false;var ok,i;while(line<endLine){state.line=line=state.skipEmptyLines(line);if(line>=endLine){break}if(state.tShift[line]<state.blkIndent){break}for(i=0;i<len;i++){ok=rules[i](state,line,endLine,false);if(ok){break}}state.tight=!hasEmptyLines;if(state.isEmpty(state.line-1)){hasEmptyLines=true}line=state.line;if(line<endLine&&state.isEmpty(line)){hasEmptyLines=true;line++;if(line<endLine&&state.parentType==="list"&&state.isEmpty(line)){break}state.line=line}}};var TABS_SCAN_RE=/[\n\t]/g;var NEWLINES_RE=/\r[\n\u0085]|[\u2424\u2028\u0085]/g;var SPACES_RE=/\u00a0/g;ParserBlock.prototype.parse=function(str,options,env,outTokens){var state,lineStart=0,lastTabPos=0;if(!str){return[]}str=str.replace(SPACES_RE," ");str=str.replace(NEWLINES_RE,"\n");if(str.indexOf(" ")>=0){str=str.replace(TABS_SCAN_RE,function(match,offset){var result;if(str.charCodeAt(offset)===10){lineStart=offset+1;lastTabPos=0;return match}result=" ".slice((offset-lineStart-lastTabPos)%4);lastTabPos=offset-lineStart+1;return result})}state=new StateBlock(str,this,options,env,outTokens);this.tokenize(state,state.line,state.lineMax)};module.exports=ParserBlock},{"./ruler":19,"./rules_block/blockquote":21,"./rules_block/code":22,"./rules_block/deflist":23,"./rules_block/fences":24,"./rules_block/footnote":25,"./rules_block/heading":26,"./rules_block/hr":27,"./rules_block/htmlblock":28,"./rules_block/lheading":29,"./rules_block/list":30,"./rules_block/paragraph":31,"./rules_block/state_block":32,"./rules_block/table":33}],16:[function(require,module,exports){"use strict";var Ruler=require("./ruler");var _rules=[["block",require("./rules_core/block")],["abbr",require("./rules_core/abbr")],["references",require("./rules_core/references")],["inline",require("./rules_core/inline")],["footnote_tail",require("./rules_core/footnote_tail")],["abbr2",require("./rules_core/abbr2")],["replacements",require("./rules_core/replacements")],["smartquotes",require("./rules_core/smartquotes")],["linkify",require("./rules_core/linkify")]];function Core(){this.options={};this.ruler=new Ruler;for(var i=0;i<_rules.length;i++){this.ruler.push(_rules[i][0],_rules[i][1])}}Core.prototype.process=function(state){var i,l,rules;rules=this.ruler.getRules("");for(i=0,l=rules.length;i<l;i++){rules[i](state)}};module.exports=Core},{"./ruler":19,"./rules_core/abbr":34,"./rules_core/abbr2":35,"./rules_core/block":36,"./rules_core/footnote_tail":37,"./rules_core/inline":38,"./rules_core/linkify":39,"./rules_core/references":40,"./rules_core/replacements":41,"./rules_core/smartquotes":42}],17:[function(require,module,exports){"use strict";var Ruler=require("./ruler");var StateInline=require("./rules_inline/state_inline");var utils=require("./common/utils");var _rules=[["text",require("./rules_inline/text")],["newline",require("./rules_inline/newline")],["escape",require("./rules_inline/escape")],["backticks",require("./rules_inline/backticks")],["del",require("./rules_inline/del")],["ins",require("./rules_inline/ins")],["mark",require("./rules_inline/mark")],["emphasis",require("./rules_inline/emphasis")],["sub",require("./rules_inline/sub")],["sup",require("./rules_inline/sup")],["links",require("./rules_inline/links")],["footnote_inline",require("./rules_inline/footnote_inline")],["footnote_ref",require("./rules_inline/footnote_ref")],["autolink",require("./rules_inline/autolink")],["htmltag",require("./rules_inline/htmltag")],["entity",require("./rules_inline/entity")]];function ParserInline(){this.ruler=new Ruler;for(var i=0;i<_rules.length;i++){this.ruler.push(_rules[i][0],_rules[i][1])}this.validateLink=validateLink}ParserInline.prototype.skipToken=function(state){var rules=this.ruler.getRules("");var len=rules.length;var pos=state.pos;var i,cached_pos;if((cached_pos=state.cacheGet(pos))>0){state.pos=cached_pos;return}for(i=0;i<len;i++){if(rules[i](state,true)){state.cacheSet(pos,state.pos);return}}state.pos++;state.cacheSet(pos,state.pos)};ParserInline.prototype.tokenize=function(state){var rules=this.ruler.getRules("");var len=rules.length;var end=state.posMax;var ok,i;while(state.pos<end){for(i=0;i<len;i++){ok=rules[i](state,false);if(ok){break}}if(ok){if(state.pos>=end){break}continue}state.pending+=state.src[state.pos++]}if(state.pending){state.pushPending()}};ParserInline.prototype.parse=function(str,options,env,outTokens){var state=new StateInline(str,this,options,env,outTokens);this.tokenize(state)};function validateLink(url){var BAD_PROTOCOLS=["vbscript","javascript","file"];var str=url.trim().toLowerCase();str=utils.replaceEntities(str);if(str.indexOf(":")!==-1&&BAD_PROTOCOLS.indexOf(str.split(":")[0])!==-1){return false}return true}module.exports=ParserInline},{"./common/utils":5,"./ruler":19,"./rules_inline/autolink":43,"./rules_inline/backticks":44,"./rules_inline/del":45,"./rules_inline/emphasis":46,"./rules_inline/entity":47,"./rules_inline/escape":48,"./rules_inline/footnote_inline":49,"./rules_inline/footnote_ref":50,"./rules_inline/htmltag":51,"./rules_inline/ins":52,"./rules_inline/links":53,"./rules_inline/mark":54,"./rules_inline/newline":55,"./rules_inline/state_inline":56,"./rules_inline/sub":57,"./rules_inline/sup":58,"./rules_inline/text":59}],18:[function(require,module,exports){"use strict";var utils=require("./common/utils");var rules=require("./rules");module.exports=Renderer;function Renderer(){this.rules=utils.assign({},rules);this.getBreak=rules.getBreak}Renderer.prototype.renderInline=function(tokens,options,env){var _rules=this.rules;var len=tokens.length,i=0;var result="";while(len--){result+=_rules[tokens[i].type](tokens,i++,options,env,this)}return result};Renderer.prototype.render=function(tokens,options,env){var _rules=this.rules;var len=tokens.length,i=-1;var result="";while(++i<len){if(tokens[i].type==="inline"){result+=this.renderInline(tokens[i].children,options,env)}else{result+=_rules[tokens[i].type](tokens,i,options,env,this)}}return result}},{"./common/utils":5,"./rules":20}],19:[function(require,module,exports){"use strict";function Ruler(){this.__rules__=[];this.__cache__=null}Ruler.prototype.__find__=function(name){var len=this.__rules__.length;var i=-1;while(len--){if(this.__rules__[++i].name===name){return i}}return-1};Ruler.prototype.__compile__=function(){var self=this;var chains=[""];self.__rules__.forEach(function(rule){if(!rule.enabled){return}rule.alt.forEach(function(altName){if(chains.indexOf(altName)<0){chains.push(altName)}})});self.__cache__={};chains.forEach(function(chain){self.__cache__[chain]=[];self.__rules__.forEach(function(rule){if(!rule.enabled){return}if(chain&&rule.alt.indexOf(chain)<0){return}self.__cache__[chain].push(rule.fn)})})};Ruler.prototype.at=function(name,fn,options){var idx=this.__find__(name);var opt=options||{};if(idx===-1){throw new Error("Parser rule not found: "+name)}this.__rules__[idx].fn=fn;this.__rules__[idx].alt=opt.alt||[];this.__cache__=null};Ruler.prototype.before=function(beforeName,ruleName,fn,options){var idx=this.__find__(beforeName);var opt=options||{};if(idx===-1){throw new Error("Parser rule not found: "+beforeName)}this.__rules__.splice(idx,0,{name:ruleName,enabled:true,fn:fn,alt:opt.alt||[]});this.__cache__=null};Ruler.prototype.after=function(afterName,ruleName,fn,options){var idx=this.__find__(afterName);var opt=options||{};if(idx===-1){throw new Error("Parser rule not found: "+afterName)}this.__rules__.splice(idx+1,0,{name:ruleName,enabled:true,fn:fn,alt:opt.alt||[]});this.__cache__=null};Ruler.prototype.push=function(ruleName,fn,options){var opt=options||{};this.__rules__.push({name:ruleName,enabled:true,fn:fn,alt:opt.alt||[]});this.__cache__=null};Ruler.prototype.enable=function(list,strict){list=!Array.isArray(list)?[list]:list;if(strict){this.__rules__.forEach(function(rule){rule.enabled=false})}list.forEach(function(name){var idx=this.__find__(name);if(idx<0){throw new Error("Rules manager: invalid rule name "+name)}this.__rules__[idx].enabled=true},this);this.__cache__=null};Ruler.prototype.disable=function(list){list=!Array.isArray(list)?[list]:list;list.forEach(function(name){var idx=this.__find__(name);if(idx<0){throw new Error("Rules manager: invalid rule name "+name)}this.__rules__[idx].enabled=false},this);this.__cache__=null};Ruler.prototype.getRules=function(chainName){if(this.__cache__===null){this.__compile__()}return this.__cache__[chainName]};module.exports=Ruler},{}],20:[function(require,module,exports){"use strict";var has=require("./common/utils").has;var unescapeMd=require("./common/utils").unescapeMd;var replaceEntities=require("./common/utils").replaceEntities;var escapeHtml=require("./common/utils").escapeHtml;var rules={};rules.blockquote_open=function(){return"<blockquote>\n"};rules.blockquote_close=function(tokens,idx){return"</blockquote>"+getBreak(tokens,idx)};rules.code=function(tokens,idx){if(tokens[idx].block){return"<pre><code>"+escapeHtml(tokens[idx].content)+"</code></pre>"+getBreak(tokens,idx)}return"<code>"+escapeHtml(tokens[idx].content)+"</code>"};rules.fence=function(tokens,idx,options,env,self){var token=tokens[idx];var langClass="";var langPrefix=options.langPrefix;var langName="",fenceName;var highlighted;if(token.params){fenceName=token.params.split(/\s+/g)[0];if(has(self.rules.fence_custom,fenceName)){return self.rules.fence_custom[fenceName](tokens,idx,options,env,self)}langName=escapeHtml(replaceEntities(unescapeMd(fenceName)));langClass=' class="'+langPrefix+langName+'"'}if(options.highlight){highlighted=options.highlight(token.content,langName)||escapeHtml(token.content)}else{highlighted=escapeHtml(token.content)}return"<pre><code"+langClass+">"+highlighted+"</code></pre>"+getBreak(tokens,idx)};rules.fence_custom={};rules.heading_open=function(tokens,idx){return"<h"+tokens[idx].hLevel+">"};rules.heading_close=function(tokens,idx){return"</h"+tokens[idx].hLevel+">\n"};rules.hr=function(tokens,idx,options){return(options.xhtmlOut?"<hr />":"<hr>")+getBreak(tokens,idx)};rules.bullet_list_open=function(){return"<ul>\n"};rules.bullet_list_close=function(tokens,idx){return"</ul>"+getBreak(tokens,idx)};rules.list_item_open=function(){return"<li>"};rules.list_item_close=function(){return"</li>\n"};rules.ordered_list_open=function(tokens,idx){var token=tokens[idx];var order=token.order>1?' start="'+token.order+'"':"";return"<ol"+order+">\n"};rules.ordered_list_close=function(tokens,idx){return"</ol>"+getBreak(tokens,idx)};rules.paragraph_open=function(tokens,idx){return tokens[idx].tight?"":"<p>"};rules.paragraph_close=function(tokens,idx){var addBreak=!(tokens[idx].tight&&idx&&tokens[idx-1].type==="inline"&&!tokens[idx-1].content);return(tokens[idx].tight?"":"</p>")+(addBreak?getBreak(tokens,idx):"")};rules.link_open=function(tokens,idx){var title=tokens[idx].title?' title="'+escapeHtml(replaceEntities(tokens[idx].title))+'"':"";return'<a href="'+escapeHtml(tokens[idx].href)+'"'+title+">"};rules.link_close=function(){return"</a>"};rules.image=function(tokens,idx,options){var src=' src="'+escapeHtml(tokens[idx].src)+'"';var title=tokens[idx].title?' title="'+escapeHtml(replaceEntities(tokens[idx].title))+'"':"";var alt=' alt="'+(tokens[idx].alt?escapeHtml(replaceEntities(tokens[idx].alt)):"")+'"';var suffix=options.xhtmlOut?" /":"";return"<img"+src+alt+title+suffix+">"};rules.table_open=function(){return"<table>\n"};rules.table_close=function(){return"</table>\n"};rules.thead_open=function(){return"<thead>\n"};rules.thead_close=function(){return"</thead>\n"};rules.tbody_open=function(){return"<tbody>\n"};rules.tbody_close=function(){return"</tbody>\n"};rules.tr_open=function(){return"<tr>"};rules.tr_close=function(){return"</tr>\n"};rules.th_open=function(tokens,idx){var token=tokens[idx];return"<th"+(token.align?' style="text-align:'+token.align+'"':"")+">"};rules.th_close=function(){return"</th>"};rules.td_open=function(tokens,idx){var token=tokens[idx];return"<td"+(token.align?' style="text-align:'+token.align+'"':"")+">"};rules.td_close=function(){return"</td>"};rules.strong_open=function(){return"<strong>"};rules.strong_close=function(){return"</strong>"};rules.em_open=function(){return"<em>"};rules.em_close=function(){return"</em>"};rules.del_open=function(){return"<del>"};rules.del_close=function(){return"</del>"};rules.ins_open=function(){return"<ins>"};rules.ins_close=function(){return"</ins>"};rules.mark_open=function(){return"<mark>"};rules.mark_close=function(){return"</mark>"};rules.sub=function(tokens,idx){return"<sub>"+escapeHtml(tokens[idx].content)+"</sub>"};rules.sup=function(tokens,idx){return"<sup>"+escapeHtml(tokens[idx].content)+"</sup>"};rules.hardbreak=function(tokens,idx,options){return options.xhtmlOut?"<br />\n":"<br>\n"};rules.softbreak=function(tokens,idx,options){return options.breaks?options.xhtmlOut?"<br />\n":"<br>\n":"\n"};rules.text=function(tokens,idx){return escapeHtml(tokens[idx].content)};rules.htmlblock=function(tokens,idx){return tokens[idx].content};rules.htmltag=function(tokens,idx){return tokens[idx].content};rules.abbr_open=function(tokens,idx){return'<abbr title="'+escapeHtml(replaceEntities(tokens[idx].title))+'">'};rules.abbr_close=function(){return"</abbr>"};rules.footnote_ref=function(tokens,idx){var n=Number(tokens[idx].id+1).toString();var id="fnref"+n;if(tokens[idx].subId>0){id+=":"+tokens[idx].subId}return'<sup class="footnote-ref"><a href="#fn'+n+'" id="'+id+'">['+n+"]</a></sup>"};rules.footnote_block_open=function(tokens,idx,options){var hr=options.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n';return hr+'<section class="footnotes">\n<ol class="footnotes-list">\n'};rules.footnote_block_close=function(){return"</ol>\n</section>\n"};rules.footnote_open=function(tokens,idx){var id=Number(tokens[idx].id+1).toString();return'<li id="fn'+id+'" class="footnote-item">'};rules.footnote_close=function(){return"</li>\n"};rules.footnote_anchor=function(tokens,idx){var n=Number(tokens[idx].id+1).toString();var id="fnref"+n;if(tokens[idx].subId>0){id+=":"+tokens[idx].subId}return' <a href="#'+id+'" class="footnote-backref">↩</a>'};rules.dl_open=function(){return"<dl>\n"};rules.dt_open=function(){return"<dt>"};rules.dd_open=function(){return"<dd>"};rules.dl_close=function(){return"</dl>\n"};rules.dt_close=function(){return"</dt>\n"};rules.dd_close=function(){return"</dd>\n"};function nextToken(tokens,idx){if(++idx>=tokens.length-2){return idx}if(tokens[idx].type==="paragraph_open"&&tokens[idx].tight&&(tokens[idx+1].type==="inline"&&tokens[idx+1].content.length===0)&&(tokens[idx+2].type==="paragraph_close"&&tokens[idx+2].tight)){return nextToken(tokens,idx+2)}return idx}var getBreak=rules.getBreak=function getBreak(tokens,idx){idx=nextToken(tokens,idx);if(idx<tokens.length&&tokens[idx].type==="list_item_close"){return""}return"\n"};module.exports=rules},{"./common/utils":5}],21:[function(require,module,exports){"use strict";module.exports=function blockquote(state,startLine,endLine,silent){var nextLine,lastLineEmpty,oldTShift,oldBMarks,oldIndent,oldParentType,lines,terminatorRules,i,l,terminate,pos=state.bMarks[startLine]+state.tShift[startLine],max=state.eMarks[startLine];if(pos>max){return false}if(state.src.charCodeAt(pos++)!==62){return false}if(state.level>=state.options.maxNesting){return false}if(silent){return true}if(state.src.charCodeAt(pos)===32){pos++}oldIndent=state.blkIndent;state.blkIndent=0;oldBMarks=[state.bMarks[startLine]];state.bMarks[startLine]=pos;pos=pos<max?state.skipSpaces(pos):pos;lastLineEmpty=pos>=max;oldTShift=[state.tShift[startLine]];state.tShift[startLine]=pos-state.bMarks[startLine];terminatorRules=state.parser.ruler.getRules("blockquote");for(nextLine=startLine+1;nextLine<endLine;nextLine++){pos=state.bMarks[nextLine]+state.tShift[nextLine];max=state.eMarks[nextLine];if(pos>=max){break}if(state.src.charCodeAt(pos++)===62){if(state.src.charCodeAt(pos)===32){pos++}oldBMarks.push(state.bMarks[nextLine]);state.bMarks[nextLine]=pos;pos=pos<max?state.skipSpaces(pos):pos;lastLineEmpty=pos>=max;oldTShift.push(state.tShift[nextLine]);state.tShift[nextLine]=pos-state.bMarks[nextLine];continue}if(lastLineEmpty){break}terminate=false;for(i=0,l=terminatorRules.length;i<l;i++){if(terminatorRules[i](state,nextLine,endLine,true)){terminate=true;break}}if(terminate){break}oldBMarks.push(state.bMarks[nextLine]);oldTShift.push(state.tShift[nextLine]);state.tShift[nextLine]=-1337}oldParentType=state.parentType;state.parentType="blockquote";state.tokens.push({type:"blockquote_open",lines:lines=[startLine,0],level:state.level++});state.parser.tokenize(state,startLine,nextLine);state.tokens.push({type:"blockquote_close",level:--state.level});state.parentType=oldParentType;lines[1]=state.line;for(i=0;i<oldTShift.length;i++){state.bMarks[i+startLine]=oldBMarks[i];state.tShift[i+startLine]=oldTShift[i]}state.blkIndent=oldIndent;return true}},{}],22:[function(require,module,exports){"use strict";module.exports=function code(state,startLine,endLine){var nextLine,last;if(state.tShift[startLine]-state.blkIndent<4){return false}last=nextLine=startLine+1;while(nextLine<endLine){if(state.isEmpty(nextLine)){nextLine++;continue}if(state.tShift[nextLine]-state.blkIndent>=4){nextLine++;last=nextLine;continue}break}state.line=nextLine;state.tokens.push({type:"code",content:state.getLines(startLine,last,4+state.blkIndent,true),block:true,lines:[startLine,state.line],level:state.level});return true}},{}],23:[function(require,module,exports){"use strict";function skipMarker(state,line){var pos,marker,start=state.bMarks[line]+state.tShift[line],max=state.eMarks[line];if(start>=max){return-1}marker=state.src.charCodeAt(start++);if(marker!==126&&marker!==58){return-1}pos=state.skipSpaces(start);if(start===pos){return-1}if(pos>=max){return-1}return pos}function markTightParagraphs(state,idx){var i,l,level=state.level+2;for(i=idx+2,l=state.tokens.length-2;i<l;i++){if(state.tokens[i].level===level&&state.tokens[i].type==="paragraph_open"){state.tokens[i+2].tight=true;state.tokens[i].tight=true;i+=2}}}module.exports=function deflist(state,startLine,endLine,silent){var contentStart,ddLine,dtLine,itemLines,listLines,listTokIdx,nextLine,oldIndent,oldDDIndent,oldParentType,oldTShift,oldTight,prevEmptyEnd,tight;if(silent){if(state.ddIndent<0){return false}return skipMarker(state,startLine)>=0}nextLine=startLine+1;if(state.isEmpty(nextLine)){if(++nextLine>endLine){return false}}if(state.tShift[nextLine]<state.blkIndent){return false}contentStart=skipMarker(state,nextLine);if(contentStart<0){return false}if(state.level>=state.options.maxNesting){return false}listTokIdx=state.tokens.length;state.tokens.push({type:"dl_open",lines:listLines=[startLine,0],level:state.level++});dtLine=startLine;ddLine=nextLine;OUTER:for(;;){tight=true;prevEmptyEnd=false;state.tokens.push({type:"dt_open",lines:[dtLine,dtLine],level:state.level++});state.tokens.push({type:"inline",content:state.getLines(dtLine,dtLine+1,state.blkIndent,false).trim(),level:state.level+1,lines:[dtLine,dtLine],children:[]});state.tokens.push({type:"dt_close",level:--state.level});for(;;){state.tokens.push({type:"dd_open",lines:itemLines=[nextLine,0],level:state.level++});oldTight=state.tight;oldDDIndent=state.ddIndent;oldIndent=state.blkIndent;oldTShift=state.tShift[ddLine];oldParentType=state.parentType;state.blkIndent=state.ddIndent=state.tShift[ddLine]+2;state.tShift[ddLine]=contentStart-state.bMarks[ddLine];state.tight=true;state.parentType="deflist";state.parser.tokenize(state,ddLine,endLine,true);if(!state.tight||prevEmptyEnd){tight=false}prevEmptyEnd=state.line-ddLine>1&&state.isEmpty(state.line-1);state.tShift[ddLine]=oldTShift;state.tight=oldTight;state.parentType=oldParentType;state.blkIndent=oldIndent;state.ddIndent=oldDDIndent;state.tokens.push({type:"dd_close",level:--state.level});itemLines[1]=nextLine=state.line;if(nextLine>=endLine){break OUTER}if(state.tShift[nextLine]<state.blkIndent){break OUTER}contentStart=skipMarker(state,nextLine);if(contentStart<0){break}ddLine=nextLine}if(nextLine>=endLine){break}dtLine=nextLine;if(state.isEmpty(dtLine)){break}if(state.tShift[dtLine]<state.blkIndent){break}ddLine=dtLine+1;if(ddLine>=endLine){break}if(state.isEmpty(ddLine)){ddLine++}if(ddLine>=endLine){break}if(state.tShift[ddLine]<state.blkIndent){break}contentStart=skipMarker(state,ddLine);if(contentStart<0){break}}state.tokens.push({type:"dl_close",level:--state.level});listLines[1]=nextLine;state.line=nextLine;if(tight){markTightParagraphs(state,listTokIdx)}return true}},{}],24:[function(require,module,exports){"use strict";module.exports=function fences(state,startLine,endLine,silent){var marker,len,params,nextLine,mem,haveEndMarker=false,pos=state.bMarks[startLine]+state.tShift[startLine],max=state.eMarks[startLine];if(pos+3>max){return false}marker=state.src.charCodeAt(pos);if(marker!==126&&marker!==96){return false}mem=pos;pos=state.skipChars(pos,marker);len=pos-mem;if(len<3){return false}params=state.src.slice(pos,max).trim();if(params.indexOf("`")>=0){return false}if(silent){return true}nextLine=startLine;for(;;){nextLine++;if(nextLine>=endLine){break}pos=mem=state.bMarks[nextLine]+state.tShift[nextLine];max=state.eMarks[nextLine];if(pos<max&&state.tShift[nextLine]<state.blkIndent){break}if(state.src.charCodeAt(pos)!==marker){continue}if(state.tShift[nextLine]-state.blkIndent>=4){continue}pos=state.skipChars(pos,marker);if(pos-mem<len){continue}pos=state.skipSpaces(pos);if(pos<max){continue}haveEndMarker=true;break}len=state.tShift[startLine];state.line=nextLine+(haveEndMarker?1:0);state.tokens.push({type:"fence",params:params,content:state.getLines(startLine+1,nextLine,len,true),lines:[startLine,state.line],level:state.level});return true}},{}],25:[function(require,module,exports){"use strict";module.exports=function footnote(state,startLine,endLine,silent){var oldBMark,oldTShift,oldParentType,pos,label,start=state.bMarks[startLine]+state.tShift[startLine],max=state.eMarks[startLine];if(start+4>max){return false}if(state.src.charCodeAt(start)!==91){return false}if(state.src.charCodeAt(start+1)!==94){return false}if(state.level>=state.options.maxNesting){return false}for(pos=start+2;pos<max;pos++){if(state.src.charCodeAt(pos)===32){return false}if(state.src.charCodeAt(pos)===93){break}}if(pos===start+2){return false}if(pos+1>=max||state.src.charCodeAt(++pos)!==58){return false}if(silent){return true}pos++;if(!state.env.footnotes){state.env.footnotes={}}if(!state.env.footnotes.refs){state.env.footnotes.refs={}}label=state.src.slice(start+2,pos-2);state.env.footnotes.refs[":"+label]=-1;state.tokens.push({type:"footnote_reference_open",label:label,level:state.level++});oldBMark=state.bMarks[startLine];oldTShift=state.tShift[startLine];oldParentType=state.parentType;state.tShift[startLine]=state.skipSpaces(pos)-pos;state.bMarks[startLine]=pos;state.blkIndent+=4;state.parentType="footnote";if(state.tShift[startLine]<state.blkIndent){state.tShift[startLine]+=state.blkIndent;state.bMarks[startLine]-=state.blkIndent}state.parser.tokenize(state,startLine,endLine,true);state.parentType=oldParentType;state.blkIndent-=4;state.tShift[startLine]=oldTShift;state.bMarks[startLine]=oldBMark;state.tokens.push({type:"footnote_reference_close",level:--state.level});return true}},{}],26:[function(require,module,exports){"use strict";module.exports=function heading(state,startLine,endLine,silent){var ch,level,tmp,pos=state.bMarks[startLine]+state.tShift[startLine],max=state.eMarks[startLine];if(pos>=max){return false}ch=state.src.charCodeAt(pos);if(ch!==35||pos>=max){return false}level=1;ch=state.src.charCodeAt(++pos);while(ch===35&&pos<max&&level<=6){level++;ch=state.src.charCodeAt(++pos)}if(level>6||pos<max&&ch!==32){return false}if(silent){return true}max=state.skipCharsBack(max,32,pos);tmp=state.skipCharsBack(max,35,pos);if(tmp>pos&&state.src.charCodeAt(tmp-1)===32){max=tmp}state.line=startLine+1;state.tokens.push({type:"heading_open",hLevel:level,lines:[startLine,state.line],level:state.level});if(pos<max){state.tokens.push({type:"inline",content:state.src.slice(pos,max).trim(),level:state.level+1,lines:[startLine,state.line],children:[]})}state.tokens.push({type:"heading_close",hLevel:level,level:state.level});return true}},{}],27:[function(require,module,exports){"use strict";module.exports=function hr(state,startLine,endLine,silent){var marker,cnt,ch,pos=state.bMarks[startLine],max=state.eMarks[startLine];pos+=state.tShift[startLine];if(pos>max){return false}marker=state.src.charCodeAt(pos++);if(marker!==42&&marker!==45&&marker!==95){return false}cnt=1;while(pos<max){ch=state.src.charCodeAt(pos++);if(ch!==marker&&ch!==32){return false}if(ch===marker){cnt++}}if(cnt<3){return false}if(silent){return true}state.line=startLine+1;state.tokens.push({type:"hr",lines:[startLine,state.line],level:state.level});return true}},{}],28:[function(require,module,exports){"use strict";var block_names=require("../common/html_blocks");var HTML_TAG_OPEN_RE=/^<([a-zA-Z]{1,15})[\s\/>]/;var HTML_TAG_CLOSE_RE=/^<\/([a-zA-Z]{1,15})[\s>]/;function isLetter(ch){var lc=ch|32;return lc>=97&&lc<=122}module.exports=function htmlblock(state,startLine,endLine,silent){var ch,match,nextLine,pos=state.bMarks[startLine],max=state.eMarks[startLine],shift=state.tShift[startLine];pos+=shift;if(!state.options.html){return false}if(shift>3||pos+2>=max){return false}if(state.src.charCodeAt(pos)!==60){return false}ch=state.src.charCodeAt(pos+1);if(ch===33||ch===63){if(silent){return true}}else if(ch===47||isLetter(ch)){if(ch===47){match=state.src.slice(pos,max).match(HTML_TAG_CLOSE_RE);if(!match){ | |
return false}}else{match=state.src.slice(pos,max).match(HTML_TAG_OPEN_RE);if(!match){return false}}if(block_names[match[1].toLowerCase()]!==true){return false}if(silent){return true}}else{return false}nextLine=startLine+1;while(nextLine<state.lineMax&&!state.isEmpty(nextLine)){nextLine++}state.line=nextLine;state.tokens.push({type:"htmlblock",level:state.level,lines:[startLine,state.line],content:state.getLines(startLine,nextLine,0,true)});return true}},{"../common/html_blocks":2}],29:[function(require,module,exports){"use strict";module.exports=function lheading(state,startLine,endLine){var marker,pos,max,next=startLine+1;if(next>=endLine){return false}if(state.tShift[next]<state.blkIndent){return false}if(state.tShift[next]-state.blkIndent>3){return false}pos=state.bMarks[next]+state.tShift[next];max=state.eMarks[next];if(pos>=max){return false}marker=state.src.charCodeAt(pos);if(marker!==45&&marker!==61){return false}pos=state.skipChars(pos,marker);pos=state.skipSpaces(pos);if(pos<max){return false}pos=state.bMarks[startLine]+state.tShift[startLine];state.line=next+1;state.tokens.push({type:"heading_open",hLevel:marker===61?1:2,lines:[startLine,state.line],level:state.level});state.tokens.push({type:"inline",content:state.src.slice(pos,state.eMarks[startLine]).trim(),level:state.level+1,lines:[startLine,state.line-1],children:[]});state.tokens.push({type:"heading_close",hLevel:marker===61?1:2,level:state.level});return true}},{}],30:[function(require,module,exports){"use strict";function skipBulletListMarker(state,startLine){var marker,pos,max;pos=state.bMarks[startLine]+state.tShift[startLine];max=state.eMarks[startLine];if(pos>=max){return-1}marker=state.src.charCodeAt(pos++);if(marker!==42&&marker!==45&&marker!==43){return-1}if(pos<max&&state.src.charCodeAt(pos)!==32){return-1}return pos}function skipOrderedListMarker(state,startLine){var ch,pos=state.bMarks[startLine]+state.tShift[startLine],max=state.eMarks[startLine];if(pos+1>=max){return-1}ch=state.src.charCodeAt(pos++);if(ch<48||ch>57){return-1}for(;;){if(pos>=max){return-1}ch=state.src.charCodeAt(pos++);if(ch>=48&&ch<=57){continue}if(ch===41||ch===46){break}return-1}if(pos<max&&state.src.charCodeAt(pos)!==32){return-1}return pos}function markTightParagraphs(state,idx){var i,l,level=state.level+2;for(i=idx+2,l=state.tokens.length-2;i<l;i++){if(state.tokens[i].level===level&&state.tokens[i].type==="paragraph_open"){state.tokens[i+2].tight=true;state.tokens[i].tight=true;i+=2}}}module.exports=function list(state,startLine,endLine,silent){var nextLine,indent,oldTShift,oldIndent,oldTight,oldParentType,start,posAfterMarker,max,indentAfterMarker,markerValue,markerCharCode,isOrdered,contentStart,listTokIdx,prevEmptyEnd,listLines,itemLines,tight=true,terminatorRules,i,l,terminate;if((posAfterMarker=skipOrderedListMarker(state,startLine))>=0){isOrdered=true}else if((posAfterMarker=skipBulletListMarker(state,startLine))>=0){isOrdered=false}else{return false}if(state.level>=state.options.maxNesting){return false}markerCharCode=state.src.charCodeAt(posAfterMarker-1);if(silent){return true}listTokIdx=state.tokens.length;if(isOrdered){start=state.bMarks[startLine]+state.tShift[startLine];markerValue=Number(state.src.substr(start,posAfterMarker-start-1));state.tokens.push({type:"ordered_list_open",order:markerValue,lines:listLines=[startLine,0],level:state.level++})}else{state.tokens.push({type:"bullet_list_open",lines:listLines=[startLine,0],level:state.level++})}nextLine=startLine;prevEmptyEnd=false;terminatorRules=state.parser.ruler.getRules("list");while(nextLine<endLine){contentStart=state.skipSpaces(posAfterMarker);max=state.eMarks[nextLine];if(contentStart>=max){indentAfterMarker=1}else{indentAfterMarker=contentStart-posAfterMarker}if(indentAfterMarker>4){indentAfterMarker=1}if(indentAfterMarker<1){indentAfterMarker=1}indent=posAfterMarker-state.bMarks[nextLine]+indentAfterMarker;state.tokens.push({type:"list_item_open",lines:itemLines=[startLine,0],level:state.level++});oldIndent=state.blkIndent;oldTight=state.tight;oldTShift=state.tShift[startLine];oldParentType=state.parentType;state.tShift[startLine]=contentStart-state.bMarks[startLine];state.blkIndent=indent;state.tight=true;state.parentType="list";state.parser.tokenize(state,startLine,endLine,true);if(!state.tight||prevEmptyEnd){tight=false}prevEmptyEnd=state.line-startLine>1&&state.isEmpty(state.line-1);state.blkIndent=oldIndent;state.tShift[startLine]=oldTShift;state.tight=oldTight;state.parentType=oldParentType;state.tokens.push({type:"list_item_close",level:--state.level});nextLine=startLine=state.line;itemLines[1]=nextLine;contentStart=state.bMarks[startLine];if(nextLine>=endLine){break}if(state.isEmpty(nextLine)){break}if(state.tShift[nextLine]<state.blkIndent){break}terminate=false;for(i=0,l=terminatorRules.length;i<l;i++){if(terminatorRules[i](state,nextLine,endLine,true)){terminate=true;break}}if(terminate){break}if(isOrdered){posAfterMarker=skipOrderedListMarker(state,nextLine);if(posAfterMarker<0){break}}else{posAfterMarker=skipBulletListMarker(state,nextLine);if(posAfterMarker<0){break}}if(markerCharCode!==state.src.charCodeAt(posAfterMarker-1)){break}}state.tokens.push({type:isOrdered?"ordered_list_close":"bullet_list_close",level:--state.level});listLines[1]=nextLine;state.line=nextLine;if(tight){markTightParagraphs(state,listTokIdx)}return true}},{}],31:[function(require,module,exports){"use strict";module.exports=function paragraph(state,startLine){var endLine,content,terminate,i,l,nextLine=startLine+1,terminatorRules;endLine=state.lineMax;if(nextLine<endLine&&!state.isEmpty(nextLine)){terminatorRules=state.parser.ruler.getRules("paragraph");for(;nextLine<endLine&&!state.isEmpty(nextLine);nextLine++){if(state.tShift[nextLine]-state.blkIndent>3){continue}terminate=false;for(i=0,l=terminatorRules.length;i<l;i++){if(terminatorRules[i](state,nextLine,endLine,true)){terminate=true;break}}if(terminate){break}}}content=state.getLines(startLine,nextLine,state.blkIndent,false).trim();state.line=nextLine;if(content.length){state.tokens.push({type:"paragraph_open",tight:false,lines:[startLine,state.line],level:state.level});state.tokens.push({type:"inline",content:content,level:state.level+1,lines:[startLine,state.line],children:[]});state.tokens.push({type:"paragraph_close",tight:false,level:state.level})}return true}},{}],32:[function(require,module,exports){"use strict";function StateBlock(src,parser,options,env,tokens){var ch,s,start,pos,len,indent,indent_found;this.src=src;this.parser=parser;this.options=options;this.env=env;this.tokens=tokens;this.bMarks=[];this.eMarks=[];this.tShift=[];this.blkIndent=0;this.line=0;this.lineMax=0;this.tight=false;this.parentType="root";this.ddIndent=-1;this.level=0;this.result="";s=this.src;indent=0;indent_found=false;for(start=pos=indent=0,len=s.length;pos<len;pos++){ch=s.charCodeAt(pos);if(!indent_found){if(ch===32){indent++;continue}else{indent_found=true}}if(ch===10||pos===len-1){if(ch!==10){pos++}this.bMarks.push(start);this.eMarks.push(pos);this.tShift.push(indent);indent_found=false;indent=0;start=pos+1}}this.bMarks.push(s.length);this.eMarks.push(s.length);this.tShift.push(0);this.lineMax=this.bMarks.length-1}StateBlock.prototype.isEmpty=function isEmpty(line){return this.bMarks[line]+this.tShift[line]>=this.eMarks[line]};StateBlock.prototype.skipEmptyLines=function skipEmptyLines(from){for(var max=this.lineMax;from<max;from++){if(this.bMarks[from]+this.tShift[from]<this.eMarks[from]){break}}return from};StateBlock.prototype.skipSpaces=function skipSpaces(pos){for(var max=this.src.length;pos<max;pos++){if(this.src.charCodeAt(pos)!==32){break}}return pos};StateBlock.prototype.skipChars=function skipChars(pos,code){for(var max=this.src.length;pos<max;pos++){if(this.src.charCodeAt(pos)!==code){break}}return pos};StateBlock.prototype.skipCharsBack=function skipCharsBack(pos,code,min){if(pos<=min){return pos}while(pos>min){if(code!==this.src.charCodeAt(--pos)){return pos+1}}return pos};StateBlock.prototype.getLines=function getLines(begin,end,indent,keepLastLF){var i,first,last,queue,shift,line=begin;if(begin>=end){return""}if(line+1===end){first=this.bMarks[line]+Math.min(this.tShift[line],indent);last=keepLastLF?this.bMarks[end]:this.eMarks[end-1];return this.src.slice(first,last)}queue=new Array(end-begin);for(i=0;line<end;line++,i++){shift=this.tShift[line];if(shift>indent){shift=indent}if(shift<0){shift=0}first=this.bMarks[line]+shift;if(line+1<end||keepLastLF){last=this.eMarks[line]+1}else{last=this.eMarks[line]}queue[i]=this.src.slice(first,last)}return queue.join("")};module.exports=StateBlock},{}],33:[function(require,module,exports){"use strict";function getLine(state,line){var pos=state.bMarks[line]+state.blkIndent,max=state.eMarks[line];return state.src.substr(pos,max-pos)}module.exports=function table(state,startLine,endLine,silent){var ch,lineText,pos,i,nextLine,rows,aligns,t,tableLines,tbodyLines;if(startLine+2>endLine){return false}nextLine=startLine+1;if(state.tShift[nextLine]<state.blkIndent){return false}pos=state.bMarks[nextLine]+state.tShift[nextLine];if(pos>=state.eMarks[nextLine]){return false}ch=state.src.charCodeAt(pos);if(ch!==124&&ch!==45&&ch!==58){return false}lineText=getLine(state,startLine+1);if(!/^[-:| ]+$/.test(lineText)){return false}rows=lineText.split("|");if(rows<=2){return false}aligns=[];for(i=0;i<rows.length;i++){t=rows[i].trim();if(!t){if(i===0||i===rows.length-1){continue}else{return false}}if(!/^:?-+:?$/.test(t)){return false}if(t.charCodeAt(t.length-1)===58){aligns.push(t.charCodeAt(0)===58?"center":"right")}else if(t.charCodeAt(0)===58){aligns.push("left")}else{aligns.push("")}}lineText=getLine(state,startLine).trim();if(lineText.indexOf("|")===-1){return false}rows=lineText.replace(/^\||\|$/g,"").split("|");if(aligns.length!==rows.length){return false}if(silent){return true}state.tokens.push({type:"table_open",lines:tableLines=[startLine,0],level:state.level++});state.tokens.push({type:"thead_open",lines:[startLine,startLine+1],level:state.level++});state.tokens.push({type:"tr_open",lines:[startLine,startLine+1],level:state.level++});for(i=0;i<rows.length;i++){state.tokens.push({type:"th_open",align:aligns[i],lines:[startLine,startLine+1],level:state.level++});state.tokens.push({type:"inline",content:rows[i].trim(),lines:[startLine,startLine+1],level:state.level,children:[]});state.tokens.push({type:"th_close",level:--state.level})}state.tokens.push({type:"tr_close",level:--state.level});state.tokens.push({type:"thead_close",level:--state.level});state.tokens.push({type:"tbody_open",lines:tbodyLines=[startLine+2,0],level:state.level++});for(nextLine=startLine+2;nextLine<endLine;nextLine++){if(state.tShift[nextLine]<state.blkIndent){break}lineText=getLine(state,nextLine).trim();if(lineText.indexOf("|")===-1){break}rows=lineText.replace(/^\||\|$/g,"").split("|");state.tokens.push({type:"tr_open",level:state.level++});for(i=0;i<rows.length;i++){state.tokens.push({type:"td_open",align:aligns[i],level:state.level++});state.tokens.push({type:"inline",content:rows[i].replace(/^\|? *| *\|?$/g,""),level:state.level,children:[]});state.tokens.push({type:"td_close",level:--state.level})}state.tokens.push({type:"tr_close",level:--state.level})}state.tokens.push({type:"tbody_close",level:--state.level});state.tokens.push({type:"table_close",level:--state.level});tableLines[1]=tbodyLines[1]=nextLine;state.line=nextLine;return true}},{}],34:[function(require,module,exports){"use strict";var StateInline=require("../rules_inline/state_inline");var parseLinkLabel=require("../helpers/parse_link_label");function parseAbbr(str,parserInline,options,env){var state,labelEnd,pos,max,label,title;if(str.charCodeAt(0)!==42){return-1}if(str.charCodeAt(1)!==91){return-1}if(str.indexOf("]:")===-1){return-1}state=new StateInline(str,parserInline,options,env,[]);labelEnd=parseLinkLabel(state,1);if(labelEnd<0||str.charCodeAt(labelEnd+1)!==58){return-1}max=state.posMax;for(pos=labelEnd+2;pos<max;pos++){if(state.src.charCodeAt(pos)===10){break}}label=str.slice(2,labelEnd);title=str.slice(labelEnd+2,pos).trim();if(title.length===0){return-1}if(!env.abbreviations){env.abbreviations={}}if(typeof env.abbreviations[":"+label]==="undefined"){env.abbreviations[":"+label]=title}return pos}module.exports=function abbr(state){var tokens=state.tokens,i,l,content,pos;if(state.inlineMode){return}for(i=1,l=tokens.length-1;i<l;i++){if(tokens[i-1].type==="paragraph_open"&&tokens[i].type==="inline"&&tokens[i+1].type==="paragraph_close"){content=tokens[i].content;while(content.length){pos=parseAbbr(content,state.inline,state.options,state.env);if(pos<0){break}content=content.slice(pos).trim()}tokens[i].content=content;if(!content.length){tokens[i-1].tight=true;tokens[i+1].tight=true}}}}},{"../helpers/parse_link_label":12,"../rules_inline/state_inline":56}],35:[function(require,module,exports){"use strict";var PUNCT_CHARS=" \n()[]'\".,!?-";function regEscape(s){return s.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}module.exports=function abbr2(state){var i,j,l,tokens,token,text,nodes,pos,level,reg,m,regText,blockTokens=state.tokens;if(!state.env.abbreviations){return}if(!state.env.abbrRegExp){regText="(^|["+PUNCT_CHARS.split("").map(regEscape).join("")+"])"+"("+Object.keys(state.env.abbreviations).map(function(x){return x.substr(1)}).sort(function(a,b){return b.length-a.length}).map(regEscape).join("|")+")"+"($|["+PUNCT_CHARS.split("").map(regEscape).join("")+"])";state.env.abbrRegExp=new RegExp(regText,"g")}reg=state.env.abbrRegExp;for(j=0,l=blockTokens.length;j<l;j++){if(blockTokens[j].type!=="inline"){continue}tokens=blockTokens[j].children;for(i=tokens.length-1;i>=0;i--){token=tokens[i];if(token.type!=="text"){continue}pos=0;text=token.content;reg.lastIndex=0;level=token.level;nodes=[];while(m=reg.exec(text)){if(reg.lastIndex>pos){nodes.push({type:"text",content:text.slice(pos,m.index+m[1].length),level:level})}nodes.push({type:"abbr_open",title:state.env.abbreviations[":"+m[2]],level:level++});nodes.push({type:"text",content:m[2],level:level});nodes.push({type:"abbr_close",level:--level});pos=reg.lastIndex-m[3].length}if(!nodes.length){continue}if(pos<text.length){nodes.push({type:"text",content:text.slice(pos),level:level})}blockTokens[j].children=tokens=[].concat(tokens.slice(0,i),nodes,tokens.slice(i+1))}}}},{}],36:[function(require,module,exports){"use strict";module.exports=function block(state){if(state.inlineMode){state.tokens.push({type:"inline",content:state.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]})}else{state.block.parse(state.src,state.options,state.env,state.tokens)}}},{}],37:[function(require,module,exports){"use strict";module.exports=function footnote_block(state){var i,l,j,t,lastParagraph,list,tokens,current,currentLabel,level=0,insideRef=false,refTokens={};if(!state.env.footnotes){return}state.tokens=state.tokens.filter(function(tok){if(tok.type==="footnote_reference_open"){insideRef=true;current=[];currentLabel=tok.label;return false}if(tok.type==="footnote_reference_close"){insideRef=false;refTokens[":"+currentLabel]=current;return false}if(insideRef){current.push(tok)}return!insideRef});if(!state.env.footnotes.list){return}list=state.env.footnotes.list;state.tokens.push({type:"footnote_block_open",level:level++});for(i=0,l=list.length;i<l;i++){state.tokens.push({type:"footnote_open",id:i,level:level++});if(list[i].tokens){tokens=[];tokens.push({type:"paragraph_open",tight:false,level:level++});tokens.push({type:"inline",content:"",level:level,children:list[i].tokens});tokens.push({type:"paragraph_close",tight:false,level:--level})}else if(list[i].label){tokens=refTokens[":"+list[i].label]}state.tokens=state.tokens.concat(tokens);if(state.tokens[state.tokens.length-1].type==="paragraph_close"){lastParagraph=state.tokens.pop()}else{lastParagraph=null}t=list[i].count>0?list[i].count:1;for(j=0;j<t;j++){state.tokens.push({type:"footnote_anchor",id:i,subId:j,level:level})}if(lastParagraph){state.tokens.push(lastParagraph)}state.tokens.push({type:"footnote_close",level:--level})}state.tokens.push({type:"footnote_block_close",level:--level})}},{}],38:[function(require,module,exports){"use strict";module.exports=function inline(state){var tokens=state.tokens,tok,i,l;for(i=0,l=tokens.length;i<l;i++){tok=tokens[i];if(tok.type==="inline"){state.inline.parse(tok.content,state.options,state.env,tok.children)}}}},{}],39:[function(require,module,exports){"use strict";var Autolinker=require("autolinker");var LINK_SCAN_RE=/www|@|\:\/\//;function isLinkOpen(str){return/^<a[>\s]/i.test(str)}function isLinkClose(str){return/^<\/a\s*>/i.test(str)}function createLinkifier(){var links=[];var autolinker=new Autolinker({stripPrefix:false,url:true,email:true,twitter:false,replaceFn:function(autolinker,match){switch(match.getType()){case"url":links.push({text:match.matchedText,url:match.getUrl()});break;case"email":links.push({text:match.matchedText,url:"mailto:"+match.getEmail().replace(/^mailto:/i,"")});break}return false}});return{links:links,autolinker:autolinker}}module.exports=function linkify(state){var i,j,l,tokens,token,text,nodes,ln,pos,level,htmlLinkLevel,blockTokens=state.tokens,linkifier=null,links,autolinker;if(!state.options.linkify){return}for(j=0,l=blockTokens.length;j<l;j++){if(blockTokens[j].type!=="inline"){continue}tokens=blockTokens[j].children;htmlLinkLevel=0;for(i=tokens.length-1;i>=0;i--){token=tokens[i];if(token.type==="link_close"){i--;while(tokens[i].level!==token.level&&tokens[i].type!=="link_open"){i--}continue}if(token.type==="htmltag"){if(isLinkOpen(token.content)&&htmlLinkLevel>0){htmlLinkLevel--}if(isLinkClose(token.content)){htmlLinkLevel++}}if(htmlLinkLevel>0){continue}if(token.type==="text"&&LINK_SCAN_RE.test(token.content)){if(!linkifier){linkifier=createLinkifier();links=linkifier.links;autolinker=linkifier.autolinker}text=token.content;links.length=0;autolinker.link(text);if(!links.length){continue}nodes=[];level=token.level;for(ln=0;ln<links.length;ln++){if(!state.inline.validateLink(links[ln].url)){continue}pos=text.indexOf(links[ln].text);if(pos){level=level;nodes.push({type:"text",content:text.slice(0,pos),level:level})}nodes.push({type:"link_open",href:links[ln].url,title:"",level:level++});nodes.push({type:"text",content:links[ln].text,level:level});nodes.push({type:"link_close",level:--level});text=text.slice(pos+links[ln].text.length)}if(text.length){nodes.push({type:"text",content:text,level:level})}blockTokens[j].children=tokens=[].concat(tokens.slice(0,i),nodes,tokens.slice(i+1))}}}}},{autolinker:60}],40:[function(require,module,exports){"use strict";var StateInline=require("../rules_inline/state_inline");var parseLinkLabel=require("../helpers/parse_link_label");var parseLinkDestination=require("../helpers/parse_link_destination");var parseLinkTitle=require("../helpers/parse_link_title");var normalizeReference=require("../helpers/normalize_reference");function parseReference(str,parser,options,env){var state,labelEnd,pos,max,code,start,href,title,label;if(str.charCodeAt(0)!==91){return-1}if(str.indexOf("]:")===-1){return-1}state=new StateInline(str,parser,options,env,[]);labelEnd=parseLinkLabel(state,0);if(labelEnd<0||str.charCodeAt(labelEnd+1)!==58){return-1}max=state.posMax;for(pos=labelEnd+2;pos<max;pos++){code=state.src.charCodeAt(pos);if(code!==32&&code!==10){break}}if(!parseLinkDestination(state,pos)){return-1}href=state.linkContent;pos=state.pos;start=pos;for(pos=pos+1;pos<max;pos++){code=state.src.charCodeAt(pos);if(code!==32&&code!==10){break}}if(pos<max&&start!==pos&&parseLinkTitle(state,pos)){title=state.linkContent;pos=state.pos}else{title="";pos=start}while(pos<max&&state.src.charCodeAt(pos)===32){pos++}if(pos<max&&state.src.charCodeAt(pos)!==10){return-1}label=normalizeReference(str.slice(1,labelEnd));if(typeof env.references[label]==="undefined"){env.references[label]={title:title,href:href}}return pos}module.exports=function references(state){var tokens=state.tokens,i,l,content,pos;state.env.references=state.env.references||{};if(state.inlineMode){return}for(i=1,l=tokens.length-1;i<l;i++){if(tokens[i].type==="inline"&&tokens[i-1].type==="paragraph_open"&&tokens[i+1].type==="paragraph_close"){content=tokens[i].content;while(content.length){pos=parseReference(content,state.inline,state.options,state.env);if(pos<0){break}content=content.slice(pos).trim()}tokens[i].content=content;if(!content.length){tokens[i-1].tight=true;tokens[i+1].tight=true}}}}},{"../helpers/normalize_reference":10,"../helpers/parse_link_destination":11,"../helpers/parse_link_label":12,"../helpers/parse_link_title":13,"../rules_inline/state_inline":56}],41:[function(require,module,exports){"use strict";var RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/;var SCOPED_ABBR_RE=/\((c|tm|r|p)\)/gi;var SCOPED_ABBR={c:"©",r:"®",p:"§",tm:"™"};function replaceScopedAbbr(str){if(str.indexOf("(")<0){return str}return str.replace(SCOPED_ABBR_RE,function(match,name){return SCOPED_ABBR[name.toLowerCase()]})}module.exports=function replace(state){var i,token,text,inlineTokens,blkIdx;if(!state.options.typographer){return}for(blkIdx=state.tokens.length-1;blkIdx>=0;blkIdx--){if(state.tokens[blkIdx].type!=="inline"){continue}inlineTokens=state.tokens[blkIdx].children;for(i=inlineTokens.length-1;i>=0;i--){token=inlineTokens[i];if(token.type==="text"){text=token.content;text=replaceScopedAbbr(text);if(RARE_RE.test(text)){text=text.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")}token.content=text}}}}},{}],42:[function(require,module,exports){"use strict";var QUOTE_TEST_RE=/['"]/;var QUOTE_RE=/['"]/g;var PUNCT_RE=/[-\s()\[\]]/;var APOSTROPHE="’";function isLetter(str,pos){if(pos<0||pos>=str.length){return false}return!PUNCT_RE.test(str[pos])}function replaceAt(str,index,ch){return str.substr(0,index)+ch+str.substr(index+1)}module.exports=function smartquotes(state){var i,token,text,t,pos,max,thisLevel,lastSpace,nextSpace,item,canOpen,canClose,j,isSingle,blkIdx,tokens,stack;if(!state.options.typographer){return}stack=[];for(blkIdx=state.tokens.length-1;blkIdx>=0;blkIdx--){if(state.tokens[blkIdx].type!=="inline"){continue}tokens=state.tokens[blkIdx].children;stack.length=0;for(i=0;i<tokens.length;i++){token=tokens[i];if(token.type!=="text"||QUOTE_TEST_RE.test(token.text)){continue}thisLevel=tokens[i].level;for(j=stack.length-1;j>=0;j--){if(stack[j].level<=thisLevel){break}}stack.length=j+1;text=token.content;pos=0;max=text.length;OUTER:while(pos<max){QUOTE_RE.lastIndex=pos;t=QUOTE_RE.exec(text);if(!t){break}lastSpace=!isLetter(text,t.index-1);pos=t.index+1;isSingle=t[0]==="'";nextSpace=!isLetter(text,pos);if(!nextSpace&&!lastSpace){if(isSingle){token.content=replaceAt(token.content,t.index,APOSTROPHE)}continue}canOpen=!nextSpace;canClose=!lastSpace;if(canClose){for(j=stack.length-1;j>=0;j--){item=stack[j];if(stack[j].level<thisLevel){break}if(item.single===isSingle&&stack[j].level===thisLevel){item=stack[j];if(isSingle){tokens[item.token].content=replaceAt(tokens[item.token].content,item.pos,state.options.quotes[2]);token.content=replaceAt(token.content,t.index,state.options.quotes[3])}else{tokens[item.token].content=replaceAt(tokens[item.token].content,item.pos,state.options.quotes[0]);token.content=replaceAt(token.content,t.index,state.options.quotes[1])}stack.length=j;continue OUTER}}}if(canOpen){stack.push({token:i,pos:t.index,single:isSingle,level:thisLevel})}else if(canClose&&isSingle){token.content=replaceAt(token.content,t.index,APOSTROPHE)}}}}}},{}],43:[function(require,module,exports){"use strict";var url_schemas=require("../common/url_schemas");var normalizeLink=require("../helpers/normalize_link");var EMAIL_RE=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/;var AUTOLINK_RE=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;module.exports=function autolink(state,silent){var tail,linkMatch,emailMatch,url,fullUrl,pos=state.pos;if(state.src.charCodeAt(pos)!==60){return false}tail=state.src.slice(pos);if(tail.indexOf(">")<0){return false}linkMatch=tail.match(AUTOLINK_RE);if(linkMatch){if(url_schemas.indexOf(linkMatch[1].toLowerCase())<0){return false}url=linkMatch[0].slice(1,-1);fullUrl=normalizeLink(url);if(!state.parser.validateLink(url)){return false}if(!silent){state.push({type:"link_open",href:fullUrl,level:state.level});state.push({type:"text",content:url,level:state.level+1});state.push({type:"link_close",level:state.level})}state.pos+=linkMatch[0].length;return true}emailMatch=tail.match(EMAIL_RE);if(emailMatch){url=emailMatch[0].slice(1,-1);fullUrl=normalizeLink("mailto:"+url);if(!state.parser.validateLink(fullUrl)){return false}if(!silent){state.push({type:"link_open",href:fullUrl,level:state.level});state.push({type:"text",content:url,level:state.level+1});state.push({type:"link_close",level:state.level})}state.pos+=emailMatch[0].length;return true}return false}},{"../common/url_schemas":4,"../helpers/normalize_link":9}],44:[function(require,module,exports){"use strict";module.exports=function backticks(state,silent){var start,max,marker,matchStart,matchEnd,pos=state.pos,ch=state.src.charCodeAt(pos);if(ch!==96){return false}start=pos;pos++;max=state.posMax;while(pos<max&&state.src.charCodeAt(pos)===96){pos++}marker=state.src.slice(start,pos);matchStart=matchEnd=pos;while((matchStart=state.src.indexOf("`",matchEnd))!==-1){matchEnd=matchStart+1;while(matchEnd<max&&state.src.charCodeAt(matchEnd)===96){matchEnd++}if(matchEnd-matchStart===marker.length){if(!silent){state.push({type:"code",content:state.src.slice(pos,matchStart).replace(/[ \n]+/g," ").trim(),block:false,level:state.level})}state.pos=matchEnd;return true}}if(!silent){state.pending+=marker}state.pos+=marker.length;return true}},{}],45:[function(require,module,exports){"use strict";module.exports=function del(state,silent){var found,pos,stack,max=state.posMax,start=state.pos,lastChar,nextChar;if(state.src.charCodeAt(start)!==126){return false}if(silent){return false}if(start+4>=max){return false}if(state.src.charCodeAt(start+1)!==126){return false}if(state.level>=state.options.maxNesting){return false}lastChar=start>0?state.src.charCodeAt(start-1):-1;nextChar=state.src.charCodeAt(start+2);if(lastChar===126){return false}if(nextChar===126){return false}if(nextChar===32||nextChar===10){return false}pos=start+2;while(pos<max&&state.src.charCodeAt(pos)===126){pos++}if(pos>start+3){state.pos+=pos-start;if(!silent){state.pending+=state.src.slice(start,pos)}return true}state.pos=start+2;stack=1;while(state.pos+1<max){if(state.src.charCodeAt(state.pos)===126){if(state.src.charCodeAt(state.pos+1)===126){lastChar=state.src.charCodeAt(state.pos-1);nextChar=state.pos+2<max?state.src.charCodeAt(state.pos+2):-1;if(nextChar!==126&&lastChar!==126){if(lastChar!==32&&lastChar!==10){stack--}else if(nextChar!==32&&nextChar!==10){stack++}if(stack<=0){found=true;break}}}}state.parser.skipToken(state)}if(!found){state.pos=start;return false}state.posMax=state.pos;state.pos=start+2;if(!silent){state.push({type:"del_open",level:state.level++});state.parser.tokenize(state);state.push({type:"del_close",level:--state.level})}state.pos=state.posMax+2;state.posMax=max;return true}},{}],46:[function(require,module,exports){"use strict";function isAlphaNum(code){return code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122}function scanDelims(state,start){var pos=start,lastChar,nextChar,count,can_open=true,can_close=true,max=state.posMax,marker=state.src.charCodeAt(start);lastChar=start>0?state.src.charCodeAt(start-1):-1;while(pos<max&&state.src.charCodeAt(pos)===marker){pos++}if(pos>=max){can_open=false}count=pos-start;if(count>=4){can_open=can_close=false}else{nextChar=pos<max?state.src.charCodeAt(pos):-1;if(nextChar===32||nextChar===10){can_open=false}if(lastChar===32||lastChar===10){can_close=false}if(marker===95){if(isAlphaNum(lastChar)){can_open=false}if(isAlphaNum(nextChar)){can_close=false}}}return{can_open:can_open,can_close:can_close,delims:count}}module.exports=function emphasis(state,silent){var startCount,count,found,oldCount,newCount,stack,res,max=state.posMax,start=state.pos,marker=state.src.charCodeAt(start);if(marker!==95&&marker!==42){return false}if(silent){return false}res=scanDelims(state,start);startCount=res.delims;if(!res.can_open){state.pos+=startCount;if(!silent){state.pending+=state.src.slice(start,state.pos)}return true}if(state.level>=state.options.maxNesting){return false}state.pos=start+startCount;stack=[startCount];while(state.pos<max){if(state.src.charCodeAt(state.pos)===marker){res=scanDelims(state,state.pos);count=res.delims;if(res.can_close){oldCount=stack.pop();newCount=count;while(oldCount!==newCount){if(newCount<oldCount){stack.push(oldCount-newCount);break}newCount-=oldCount;if(stack.length===0){break}state.pos+=oldCount;oldCount=stack.pop()}if(stack.length===0){startCount=oldCount;found=true;break}state.pos+=count;continue}if(res.can_open){stack.push(count)}state.pos+=count;continue}state.parser.skipToken(state)}if(!found){state.pos=start;return false}state.posMax=state.pos;state.pos=start+startCount;if(!silent){if(startCount===2||startCount===3){state.push({type:"strong_open",level:state.level++})}if(startCount===1||startCount===3){state.push({type:"em_open",level:state.level++})}state.parser.tokenize(state);if(startCount===1||startCount===3){state.push({type:"em_close",level:--state.level})}if(startCount===2||startCount===3){state.push({type:"strong_close",level:--state.level})}}state.pos=state.posMax+startCount;state.posMax=max;return true}},{}],47:[function(require,module,exports){"use strict";var entities=require("../common/entities");var has=require("../common/utils").has;var isValidEntityCode=require("../common/utils").isValidEntityCode;var fromCodePoint=require("../common/utils").fromCodePoint;var DIGITAL_RE=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i;var NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;module.exports=function entity(state,silent){var ch,code,match,pos=state.pos,max=state.posMax;if(state.src.charCodeAt(pos)!==38){return false}if(pos+1<max){ch=state.src.charCodeAt(pos+1);if(ch===35){match=state.src.slice(pos).match(DIGITAL_RE);if(match){if(!silent){code=match[1][0].toLowerCase()==="x"?parseInt(match[1].slice(1),16):parseInt(match[1],10);state.pending+=isValidEntityCode(code)?fromCodePoint(code):fromCodePoint(65533)}state.pos+=match[0].length;return true}}else{match=state.src.slice(pos).match(NAMED_RE);if(match){if(has(entities,match[1])){if(!silent){state.pending+=entities[match[1]]}state.pos+=match[0].length;return true}}}}if(!silent){state.pending+="&"}state.pos++;return true}},{"../common/entities":1,"../common/utils":5}],48:[function(require,module,exports){"use strict";var ESCAPED=[];for(var i=0;i<256;i++){ESCAPED.push(0)}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ch){ESCAPED[ch.charCodeAt(0)]=1});module.exports=function escape(state,silent){var ch,pos=state.pos,max=state.posMax;if(state.src.charCodeAt(pos)!==92){return false}pos++;if(pos<max){ch=state.src.charCodeAt(pos);if(ch<256&&ESCAPED[ch]!==0){if(!silent){state.pending+=state.src[pos]}state.pos+=2;return true}if(ch===10){if(!silent){state.push({type:"hardbreak",level:state.level})}pos++;while(pos<max&&state.src.charCodeAt(pos)===32){pos++}state.pos=pos;return true}}if(!silent){state.pending+="\\"}state.pos++;return true}},{}],49:[function(require,module,exports){"use strict";var parseLinkLabel=require("../helpers/parse_link_label");module.exports=function footnote_inline(state,silent){var labelStart,labelEnd,footnoteId,oldLength,max=state.posMax,start=state.pos;if(start+2>=max){return false}if(state.src.charCodeAt(start)!==94){return false}if(state.src.charCodeAt(start+1)!==91){return false}if(state.level>=state.options.maxNesting){return false}labelStart=start+2; | |
labelEnd=parseLinkLabel(state,start+1);if(labelEnd<0){return false}if(!silent){if(!state.env.footnotes){state.env.footnotes={}}if(!state.env.footnotes.list){state.env.footnotes.list=[]}footnoteId=state.env.footnotes.list.length;state.pos=labelStart;state.posMax=labelEnd;state.push({type:"footnote_ref",id:footnoteId,level:state.level});state.linkLevel++;oldLength=state.tokens.length;state.parser.tokenize(state);state.env.footnotes.list[footnoteId]={tokens:state.tokens.splice(oldLength)};state.linkLevel--}state.pos=labelEnd+1;state.posMax=max;return true}},{"../helpers/parse_link_label":12}],50:[function(require,module,exports){"use strict";module.exports=function footnote_ref(state,silent){var label,pos,footnoteId,footnoteSubId,max=state.posMax,start=state.pos;if(start+3>max){return false}if(!state.env.footnotes||!state.env.footnotes.refs){return false}if(state.src.charCodeAt(start)!==91){return false}if(state.src.charCodeAt(start+1)!==94){return false}if(state.level>=state.options.maxNesting){return false}for(pos=start+2;pos<max;pos++){if(state.src.charCodeAt(pos)===32){return false}if(state.src.charCodeAt(pos)===10){return false}if(state.src.charCodeAt(pos)===93){break}}if(pos===start+2){return false}if(pos>=max){return false}pos++;label=state.src.slice(start+2,pos-1);if(typeof state.env.footnotes.refs[":"+label]==="undefined"){return false}if(!silent){if(!state.env.footnotes.list){state.env.footnotes.list=[]}if(state.env.footnotes.refs[":"+label]<0){footnoteId=state.env.footnotes.list.length;state.env.footnotes.list[footnoteId]={label:label,count:0};state.env.footnotes.refs[":"+label]=footnoteId}else{footnoteId=state.env.footnotes.refs[":"+label]}footnoteSubId=state.env.footnotes.list[footnoteId].count;state.env.footnotes.list[footnoteId].count++;state.push({type:"footnote_ref",id:footnoteId,subId:footnoteSubId,level:state.level})}state.pos=pos;state.posMax=max;return true}},{}],51:[function(require,module,exports){"use strict";var HTML_TAG_RE=require("../common/html_re").HTML_TAG_RE;function isLetter(ch){var lc=ch|32;return lc>=97&&lc<=122}module.exports=function htmltag(state,silent){var ch,match,max,pos=state.pos;if(!state.options.html){return false}max=state.posMax;if(state.src.charCodeAt(pos)!==60||pos+2>=max){return false}ch=state.src.charCodeAt(pos+1);if(ch!==33&&ch!==63&&ch!==47&&!isLetter(ch)){return false}match=state.src.slice(pos).match(HTML_TAG_RE);if(!match){return false}if(!silent){state.push({type:"htmltag",content:state.src.slice(pos,pos+match[0].length),level:state.level})}state.pos+=match[0].length;return true}},{"../common/html_re":3}],52:[function(require,module,exports){"use strict";module.exports=function ins(state,silent){var found,pos,stack,max=state.posMax,start=state.pos,lastChar,nextChar;if(state.src.charCodeAt(start)!==43){return false}if(silent){return false}if(start+4>=max){return false}if(state.src.charCodeAt(start+1)!==43){return false}if(state.level>=state.options.maxNesting){return false}lastChar=start>0?state.src.charCodeAt(start-1):-1;nextChar=state.src.charCodeAt(start+2);if(lastChar===43){return false}if(nextChar===43){return false}if(nextChar===32||nextChar===10){return false}pos=start+2;while(pos<max&&state.src.charCodeAt(pos)===43){pos++}if(pos!==start+2){state.pos+=pos-start;if(!silent){state.pending+=state.src.slice(start,pos)}return true}state.pos=start+2;stack=1;while(state.pos+1<max){if(state.src.charCodeAt(state.pos)===43){if(state.src.charCodeAt(state.pos+1)===43){lastChar=state.src.charCodeAt(state.pos-1);nextChar=state.pos+2<max?state.src.charCodeAt(state.pos+2):-1;if(nextChar!==43&&lastChar!==43){if(lastChar!==32&&lastChar!==10){stack--}else if(nextChar!==32&&nextChar!==10){stack++}if(stack<=0){found=true;break}}}}state.parser.skipToken(state)}if(!found){state.pos=start;return false}state.posMax=state.pos;state.pos=start+2;if(!silent){state.push({type:"ins_open",level:state.level++});state.parser.tokenize(state);state.push({type:"ins_close",level:--state.level})}state.pos=state.posMax+2;state.posMax=max;return true}},{}],53:[function(require,module,exports){"use strict";var parseLinkLabel=require("../helpers/parse_link_label");var parseLinkDestination=require("../helpers/parse_link_destination");var parseLinkTitle=require("../helpers/parse_link_title");var normalizeReference=require("../helpers/normalize_reference");module.exports=function links(state,silent){var labelStart,labelEnd,label,href,title,pos,ref,code,isImage=false,oldPos=state.pos,max=state.posMax,start=state.pos,marker=state.src.charCodeAt(start);if(marker===33){isImage=true;marker=state.src.charCodeAt(++start)}if(marker!==91){return false}if(state.level>=state.options.maxNesting){return false}labelStart=start+1;labelEnd=parseLinkLabel(state,start);if(labelEnd<0){return false}pos=labelEnd+1;if(pos<max&&state.src.charCodeAt(pos)===40){pos++;for(;pos<max;pos++){code=state.src.charCodeAt(pos);if(code!==32&&code!==10){break}}if(pos>=max){return false}start=pos;if(parseLinkDestination(state,pos)){href=state.linkContent;pos=state.pos}else{href=""}start=pos;for(;pos<max;pos++){code=state.src.charCodeAt(pos);if(code!==32&&code!==10){break}}if(pos<max&&start!==pos&&parseLinkTitle(state,pos)){title=state.linkContent;pos=state.pos;for(;pos<max;pos++){code=state.src.charCodeAt(pos);if(code!==32&&code!==10){break}}}else{title=""}if(pos>=max||state.src.charCodeAt(pos)!==41){state.pos=oldPos;return false}pos++}else{if(state.linkLevel>0){return false}for(;pos<max;pos++){code=state.src.charCodeAt(pos);if(code!==32&&code!==10){break}}if(pos<max&&state.src.charCodeAt(pos)===91){start=pos+1;pos=parseLinkLabel(state,pos);if(pos>=0){label=state.src.slice(start,pos++)}else{pos=start-1}}if(!label){label=state.src.slice(labelStart,labelEnd)}ref=state.env.references[normalizeReference(label)];if(!ref){state.pos=oldPos;return false}href=ref.href;title=ref.title}if(!silent){state.pos=labelStart;state.posMax=labelEnd;if(isImage){state.push({type:"image",src:href,title:title,alt:state.src.substr(labelStart,labelEnd-labelStart),level:state.level})}else{state.push({type:"link_open",href:href,title:title,level:state.level++});state.linkLevel++;state.parser.tokenize(state);state.linkLevel--;state.push({type:"link_close",level:--state.level})}}state.pos=pos;state.posMax=max;return true}},{"../helpers/normalize_reference":10,"../helpers/parse_link_destination":11,"../helpers/parse_link_label":12,"../helpers/parse_link_title":13}],54:[function(require,module,exports){"use strict";module.exports=function del(state,silent){var found,pos,stack,max=state.posMax,start=state.pos,lastChar,nextChar;if(state.src.charCodeAt(start)!==61){return false}if(silent){return false}if(start+4>=max){return false}if(state.src.charCodeAt(start+1)!==61){return false}if(state.level>=state.options.maxNesting){return false}lastChar=start>0?state.src.charCodeAt(start-1):-1;nextChar=state.src.charCodeAt(start+2);if(lastChar===61){return false}if(nextChar===61){return false}if(nextChar===32||nextChar===10){return false}pos=start+2;while(pos<max&&state.src.charCodeAt(pos)===61){pos++}if(pos!==start+2){state.pos+=pos-start;if(!silent){state.pending+=state.src.slice(start,pos)}return true}state.pos=start+2;stack=1;while(state.pos+1<max){if(state.src.charCodeAt(state.pos)===61){if(state.src.charCodeAt(state.pos+1)===61){lastChar=state.src.charCodeAt(state.pos-1);nextChar=state.pos+2<max?state.src.charCodeAt(state.pos+2):-1;if(nextChar!==61&&lastChar!==61){if(lastChar!==32&&lastChar!==10){stack--}else if(nextChar!==32&&nextChar!==10){stack++}if(stack<=0){found=true;break}}}}state.parser.skipToken(state)}if(!found){state.pos=start;return false}state.posMax=state.pos;state.pos=start+2;if(!silent){state.push({type:"mark_open",level:state.level++});state.parser.tokenize(state);state.push({type:"mark_close",level:--state.level})}state.pos=state.posMax+2;state.posMax=max;return true}},{}],55:[function(require,module,exports){"use strict";module.exports=function newline(state,silent){var pmax,max,pos=state.pos;if(state.src.charCodeAt(pos)!==10){return false}pmax=state.pending.length-1;max=state.posMax;if(!silent){if(pmax>=0&&state.pending.charCodeAt(pmax)===32){if(pmax>=1&&state.pending.charCodeAt(pmax-1)===32){state.pending=state.pending.replace(/ +$/,"");state.push({type:"hardbreak",level:state.level})}else{state.pending=state.pending.slice(0,-1);state.push({type:"softbreak",level:state.level})}}else{state.push({type:"softbreak",level:state.level})}}pos++;while(pos<max&&state.src.charCodeAt(pos)===32){pos++}state.pos=pos;return true}},{}],56:[function(require,module,exports){"use strict";function StateInline(src,parserInline,options,env,outTokens){this.src=src;this.env=env;this.options=options;this.parser=parserInline;this.tokens=outTokens;this.pos=0;this.posMax=this.src.length;this.level=0;this.pending="";this.pendingLevel=0;this.cache=[];this.isInLabel=false;this.linkLevel=0;this.linkContent="";this.labelUnmatchedScopes=0}StateInline.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel});this.pending=""};StateInline.prototype.push=function(token){if(this.pending){this.pushPending()}this.tokens.push(token);this.pendingLevel=this.level};StateInline.prototype.cacheSet=function(key,val){for(var i=this.cache.length;i<=key;i++){this.cache.push(0)}this.cache[key]=val};StateInline.prototype.cacheGet=function(key){return key<this.cache.length?this.cache[key]:0};module.exports=StateInline},{}],57:[function(require,module,exports){"use strict";var UNESCAPE_RE=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;module.exports=function sub(state,silent){var found,content,max=state.posMax,start=state.pos;if(state.src.charCodeAt(start)!==126){return false}if(silent){return false}if(start+2>=max){return false}if(state.level>=state.options.maxNesting){return false}state.pos=start+1;while(state.pos<max){if(state.src.charCodeAt(state.pos)===126){found=true;break}state.parser.skipToken(state)}if(!found||start+1===state.pos){state.pos=start;return false}content=state.src.slice(start+1,state.pos);if(content.match(/(^|[^\\])(\\\\)*\s/)){state.pos=start;return false}state.posMax=state.pos;state.pos=start+1;if(!silent){state.push({type:"sub",level:state.level,content:content.replace(UNESCAPE_RE,"$1")})}state.pos=state.posMax+1;state.posMax=max;return true}},{}],58:[function(require,module,exports){"use strict";var UNESCAPE_RE=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;module.exports=function sup(state,silent){var found,content,max=state.posMax,start=state.pos;if(state.src.charCodeAt(start)!==94){return false}if(silent){return false}if(start+2>=max){return false}if(state.level>=state.options.maxNesting){return false}state.pos=start+1;while(state.pos<max){if(state.src.charCodeAt(state.pos)===94){found=true;break}state.parser.skipToken(state)}if(!found||start+1===state.pos){state.pos=start;return false}content=state.src.slice(start+1,state.pos);if(content.match(/(^|[^\\])(\\\\)*\s/)){state.pos=start;return false}state.posMax=state.pos;state.pos=start+1;if(!silent){state.push({type:"sup",level:state.level,content:content.replace(UNESCAPE_RE,"$1")})}state.pos=state.posMax+1;state.posMax=max;return true}},{}],59:[function(require,module,exports){"use strict";function isTerminatorChar(ch){switch(ch){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return true;default:return false}}module.exports=function text(state,silent){var pos=state.pos;while(pos<state.posMax&&!isTerminatorChar(state.src.charCodeAt(pos))){pos++}if(pos===state.pos){return false}if(!silent){state.pending+=state.src.slice(state.pos,pos)}state.pos=pos;return true}},{}],60:[function(require,module,exports){(function(root,factory){if(typeof define==="function"&&define.amd){define([],function(){return root["Autolinker"]=factory()})}else if(typeof exports==="object"){module.exports=factory()}else{root["Autolinker"]=factory()}})(this,function(){var Autolinker=function(cfg){Autolinker.Util.assign(this,cfg)};Autolinker.prototype={constructor:Autolinker,urls:true,email:true,twitter:true,newWindow:true,stripPrefix:true,truncate:undefined,className:"",htmlParser:undefined,matchParser:undefined,tagBuilder:undefined,link:function(textOrHtml){var htmlParser=this.getHtmlParser(),htmlNodes=htmlParser.parse(textOrHtml),anchorTagStackCount=0,resultHtml=[];for(var i=0,len=htmlNodes.length;i<len;i++){var node=htmlNodes[i],nodeType=node.getType(),nodeText=node.getText();if(nodeType==="element"){if(node.getTagName()==="a"){if(!node.isClosing()){anchorTagStackCount++}else{anchorTagStackCount=Math.max(anchorTagStackCount-1,0)}}resultHtml.push(nodeText)}else if(nodeType==="entity"){resultHtml.push(nodeText)}else{if(anchorTagStackCount===0){var linkifiedStr=this.linkifyStr(nodeText);resultHtml.push(linkifiedStr)}else{resultHtml.push(nodeText)}}}return resultHtml.join("")},linkifyStr:function(str){return this.getMatchParser().replace(str,this.createMatchReturnVal,this)},createMatchReturnVal:function(match){var replaceFnResult;if(this.replaceFn){replaceFnResult=this.replaceFn.call(this,this,match)}if(typeof replaceFnResult==="string"){return replaceFnResult}else if(replaceFnResult===false){return match.getMatchedText()}else if(replaceFnResult instanceof Autolinker.HtmlTag){return replaceFnResult.toString()}else{var tagBuilder=this.getTagBuilder(),anchorTag=tagBuilder.build(match);return anchorTag.toString()}},getHtmlParser:function(){var htmlParser=this.htmlParser;if(!htmlParser){htmlParser=this.htmlParser=new Autolinker.htmlParser.HtmlParser}return htmlParser},getMatchParser:function(){var matchParser=this.matchParser;if(!matchParser){matchParser=this.matchParser=new Autolinker.matchParser.MatchParser({urls:this.urls,email:this.email,twitter:this.twitter,stripPrefix:this.stripPrefix})}return matchParser},getTagBuilder:function(){var tagBuilder=this.tagBuilder;if(!tagBuilder){tagBuilder=this.tagBuilder=new Autolinker.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})}return tagBuilder}};Autolinker.link=function(textOrHtml,options){var autolinker=new Autolinker(options);return autolinker.link(textOrHtml)};Autolinker.match={};Autolinker.htmlParser={};Autolinker.matchParser={};Autolinker.Util={abstractMethod:function(){throw"abstract"},assign:function(dest,src){for(var prop in src){if(src.hasOwnProperty(prop)){dest[prop]=src[prop]}}return dest},extend:function(superclass,protoProps){var superclassProto=superclass.prototype;var F=function(){};F.prototype=superclassProto;var subclass;if(protoProps.hasOwnProperty("constructor")){subclass=protoProps.constructor}else{subclass=function(){superclassProto.constructor.apply(this,arguments)}}var subclassProto=subclass.prototype=new F;subclassProto.constructor=subclass;subclassProto.superclass=superclassProto;delete protoProps.constructor;Autolinker.Util.assign(subclassProto,protoProps);return subclass},ellipsis:function(str,truncateLen,ellipsisChars){if(str.length>truncateLen){ellipsisChars=ellipsisChars==null?"..":ellipsisChars;str=str.substring(0,truncateLen-ellipsisChars.length)+ellipsisChars}return str},indexOf:function(arr,element){if(Array.prototype.indexOf){return arr.indexOf(element)}else{for(var i=0,len=arr.length;i<len;i++){if(arr[i]===element)return i}return-1}},splitAndCapture:function(str,splitRegex){if(!splitRegex.global)throw new Error("`splitRegex` must have the 'g' flag set");var result=[],lastIdx=0,match;while(match=splitRegex.exec(str)){result.push(str.substring(lastIdx,match.index));result.push(match[0]);lastIdx=match.index+match[0].length}result.push(str.substring(lastIdx));return result}};Autolinker.HtmlTag=Autolinker.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(cfg){Autolinker.Util.assign(this,cfg);this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(tagName){this.tagName=tagName;return this},getTagName:function(){return this.tagName||""},setAttr:function(attrName,attrValue){var tagAttrs=this.getAttrs();tagAttrs[attrName]=attrValue;return this},getAttr:function(attrName){return this.getAttrs()[attrName]},setAttrs:function(attrs){var tagAttrs=this.getAttrs();Autolinker.Util.assign(tagAttrs,attrs);return this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(cssClass){return this.setAttr("class",cssClass)},addClass:function(cssClass){var classAttr=this.getClass(),whitespaceRegex=this.whitespaceRegex,indexOf=Autolinker.Util.indexOf,classes=!classAttr?[]:classAttr.split(whitespaceRegex),newClasses=cssClass.split(whitespaceRegex),newClass;while(newClass=newClasses.shift()){if(indexOf(classes,newClass)===-1){classes.push(newClass)}}this.getAttrs()["class"]=classes.join(" ");return this},removeClass:function(cssClass){var classAttr=this.getClass(),whitespaceRegex=this.whitespaceRegex,indexOf=Autolinker.Util.indexOf,classes=!classAttr?[]:classAttr.split(whitespaceRegex),removeClasses=cssClass.split(whitespaceRegex),removeClass;while(classes.length&&(removeClass=removeClasses.shift())){var idx=indexOf(classes,removeClass);if(idx!==-1){classes.splice(idx,1)}}this.getAttrs()["class"]=classes.join(" ");return this},getClass:function(){return this.getAttrs()["class"]||""},hasClass:function(cssClass){return(" "+this.getClass()+" ").indexOf(" "+cssClass+" ")!==-1},setInnerHtml:function(html){this.innerHtml=html;return this},getInnerHtml:function(){return this.innerHtml||""},toString:function(){var tagName=this.getTagName(),attrsStr=this.buildAttrsStr();attrsStr=attrsStr?" "+attrsStr:"";return["<",tagName,attrsStr,">",this.getInnerHtml(),"</",tagName,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var attrs=this.getAttrs(),attrsArr=[];for(var prop in attrs){if(attrs.hasOwnProperty(prop)){attrsArr.push(prop+'="'+attrs[prop]+'"')}}return attrsArr.join(" ")}});Autolinker.AnchorTagBuilder=Autolinker.Util.extend(Object,{constructor:function(cfg){Autolinker.Util.assign(this,cfg)},build:function(match){var tag=new Autolinker.HtmlTag({tagName:"a",attrs:this.createAttrs(match.getType(),match.getAnchorHref()),innerHtml:this.processAnchorText(match.getAnchorText())});return tag},createAttrs:function(matchType,anchorHref){var attrs={href:anchorHref};var cssClass=this.createCssClass(matchType);if(cssClass){attrs["class"]=cssClass}if(this.newWindow){attrs["target"]="_blank"}return attrs},createCssClass:function(matchType){var className=this.className;if(!className)return"";else return className+" "+className+"-"+matchType},processAnchorText:function(anchorText){anchorText=this.doTruncate(anchorText);return anchorText},doTruncate:function(anchorText){return Autolinker.Util.ellipsis(anchorText,this.truncate||Number.POSITIVE_INFINITY)}});Autolinker.htmlParser.HtmlParser=Autolinker.Util.extend(Object,{htmlRegex:function(){var tagNameRegex=/[0-9a-zA-Z][0-9a-zA-Z:]*/,attrNameRegex=/[^\s\0"'>\/=\x01-\x1F\x7F]+/,attrValueRegex=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,nameEqualsValueRegex=attrNameRegex.source+"(?:\\s*=\\s*"+attrValueRegex.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",nameEqualsValueRegex,"|",attrValueRegex.source+")",")*",">",")","|","(?:","<(/)?","("+tagNameRegex.source+")","(?:","\\s+",nameEqualsValueRegex,")*","\\s*/?",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(html){var htmlRegex=this.htmlRegex,currentResult,lastIndex=0,textAndEntityNodes,nodes=[];while((currentResult=htmlRegex.exec(html))!==null){var tagText=currentResult[0],tagName=currentResult[1]||currentResult[3],isClosingTag=!!currentResult[2],inBetweenTagsText=html.substring(lastIndex,currentResult.index);if(inBetweenTagsText){textAndEntityNodes=this.parseTextAndEntityNodes(inBetweenTagsText);nodes.push.apply(nodes,textAndEntityNodes)}nodes.push(this.createElementNode(tagText,tagName,isClosingTag));lastIndex=currentResult.index+tagText.length}if(lastIndex<html.length){var text=html.substring(lastIndex);if(text){textAndEntityNodes=this.parseTextAndEntityNodes(text);nodes.push.apply(nodes,textAndEntityNodes)}}return nodes},parseTextAndEntityNodes:function(text){var nodes=[],textAndEntityTokens=Autolinker.Util.splitAndCapture(text,this.htmlCharacterEntitiesRegex);for(var i=0,len=textAndEntityTokens.length;i<len;i+=2){var textToken=textAndEntityTokens[i],entityToken=textAndEntityTokens[i+1];if(textToken)nodes.push(this.createTextNode(textToken));if(entityToken)nodes.push(this.createEntityNode(entityToken))}return nodes},createElementNode:function(tagText,tagName,isClosingTag){return new Autolinker.htmlParser.ElementNode({text:tagText,tagName:tagName.toLowerCase(),closing:isClosingTag})},createEntityNode:function(text){return new Autolinker.htmlParser.EntityNode({text:text})},createTextNode:function(text){return new Autolinker.htmlParser.TextNode({text:text})}});Autolinker.htmlParser.HtmlNode=Autolinker.Util.extend(Object,{text:"",constructor:function(cfg){Autolinker.Util.assign(this,cfg)},getType:Autolinker.Util.abstractMethod,getText:function(){return this.text}});Autolinker.htmlParser.ElementNode=Autolinker.Util.extend(Autolinker.htmlParser.HtmlNode,{tagName:"",closing:false,getType:function(){return"element"},getTagName:function(){return this.tagName},isClosing:function(){return this.closing}});Autolinker.htmlParser.EntityNode=Autolinker.Util.extend(Autolinker.htmlParser.HtmlNode,{getType:function(){return"entity"}});Autolinker.htmlParser.TextNode=Autolinker.Util.extend(Autolinker.htmlParser.HtmlNode,{getType:function(){return"text"}});Autolinker.matchParser.MatchParser=Autolinker.Util.extend(Object,{urls:true,email:true,twitter:true,stripPrefix:true,matcherRegex:function(){var twitterRegex=/(^|[^\w])@(\w{1,15})/,emailRegex=/(?:[\-;:&=\+\$,\w\.]+@)/,protocolRegex=/(?:[A-Za-z][-.+A-Za-z0-9]+:(?![A-Za-z][-.+A-Za-z0-9]+:\/\/)(?!\d+\/?)(?:\/\/)?)/,wwwRegex=/(?:www\.)/,domainNameRegex=/[A-Za-z0-9\.\-]*[A-Za-z0-9\-]/,tldRegex=/\.(?:international|construction|contractors|enterprises|photography|productions|foundation|immobilien|industries|management|properties|technology|christmas|community|directory|education|equipment|institute|marketing|solutions|vacations|bargains|boutique|builders|catering|cleaning|clothing|computer|democrat|diamonds|graphics|holdings|lighting|partners|plumbing|supplies|training|ventures|academy|careers|company|cruises|domains|exposed|flights|florist|gallery|guitars|holiday|kitchen|neustar|okinawa|recipes|rentals|reviews|shiksha|singles|support|systems|agency|berlin|camera|center|coffee|condos|dating|estate|events|expert|futbol|kaufen|luxury|maison|monash|museum|nagoya|photos|repair|report|social|supply|tattoo|tienda|travel|viajes|villas|vision|voting|voyage|actor|build|cards|cheap|codes|dance|email|glass|house|mango|ninja|parts|photo|shoes|solar|today|tokyo|tools|watch|works|aero|arpa|asia|best|bike|blue|buzz|camp|club|cool|coop|farm|fish|gift|guru|info|jobs|kiwi|kred|land|limo|link|menu|mobi|moda|name|pics|pink|post|qpon|rich|ruhr|sexy|tips|vote|voto|wang|wien|wiki|zone|bar|bid|biz|cab|cat|ceo|com|edu|gov|int|kim|mil|net|onl|org|pro|pub|red|tel|uno|wed|xxx|xyz|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw)\b/,urlSuffixRegex=/[\-A-Za-z0-9+&@#\/%=~_()|'$*\[\]?!:,.;]*[\-A-Za-z0-9+&@#\/%=~_()|'$*\[\]]/;return new RegExp(["(",twitterRegex.source,")","|","(",emailRegex.source,domainNameRegex.source,tldRegex.source,")","|","(","(?:","(",protocolRegex.source,domainNameRegex.source,")","|","(?:","(.?//)?",wwwRegex.source,domainNameRegex.source,")","|","(?:","(.?//)?",domainNameRegex.source,tldRegex.source,")",")","(?:"+urlSuffixRegex.source+")?",")"].join(""),"gi")}(),charBeforeProtocolRelMatchRegex:/^(.)?\/\//,constructor:function(cfg){Autolinker.Util.assign(this,cfg);this.matchValidator=new Autolinker.MatchValidator},replace:function(text,replaceFn,contextObj){var me=this;return text.replace(this.matcherRegex,function(matchStr,$1,$2,$3,$4,$5,$6,$7,$8){var matchDescObj=me.processCandidateMatch(matchStr,$1,$2,$3,$4,$5,$6,$7,$8);if(!matchDescObj){return matchStr}else{var replaceStr=replaceFn.call(contextObj,matchDescObj.match);return matchDescObj.prefixStr+replaceStr+matchDescObj.suffixStr}})},processCandidateMatch:function(matchStr,twitterMatch,twitterHandlePrefixWhitespaceChar,twitterHandle,emailAddressMatch,urlMatch,protocolUrlMatch,wwwProtocolRelativeMatch,tldProtocolRelativeMatch){var protocolRelativeMatch=wwwProtocolRelativeMatch||tldProtocolRelativeMatch,match,prefixStr="",suffixStr="";if(twitterMatch&&!this.twitter||emailAddressMatch&&!this.email||urlMatch&&!this.urls||!this.matchValidator.isValidMatch(urlMatch,protocolUrlMatch,protocolRelativeMatch)){return null}if(this.matchHasUnbalancedClosingParen(matchStr)){matchStr=matchStr.substr(0,matchStr.length-1);suffixStr=")"}if(emailAddressMatch){match=new Autolinker.match.Email({matchedText:matchStr,email:emailAddressMatch})}else if(twitterMatch){if(twitterHandlePrefixWhitespaceChar){prefixStr=twitterHandlePrefixWhitespaceChar;matchStr=matchStr.slice(1)}match=new Autolinker.match.Twitter({matchedText:matchStr,twitterHandle:twitterHandle})}else{if(protocolRelativeMatch){var charBeforeMatch=protocolRelativeMatch.match(this.charBeforeProtocolRelMatchRegex)[1]||"";if(charBeforeMatch){prefixStr=charBeforeMatch;matchStr=matchStr.slice(1)}}match=new Autolinker.match.Url({matchedText:matchStr,url:matchStr,protocolUrlMatch:!!protocolUrlMatch,protocolRelativeMatch:!!protocolRelativeMatch,stripPrefix:this.stripPrefix})}return{prefixStr:prefixStr,suffixStr:suffixStr,match:match}},matchHasUnbalancedClosingParen:function(matchStr){var lastChar=matchStr.charAt(matchStr.length-1);if(lastChar===")"){var openParensMatch=matchStr.match(/\(/g),closeParensMatch=matchStr.match(/\)/g),numOpenParens=openParensMatch&&openParensMatch.length||0,numCloseParens=closeParensMatch&&closeParensMatch.length||0;if(numOpenParens<numCloseParens){return true}}return false}});Autolinker.MatchValidator=Autolinker.Util.extend(Object,{invalidProtocolRelMatchRegex:/^[\w]\/\//,hasFullProtocolRegex:/^[A-Za-z][-.+A-Za-z0-9]+:\/\//,uriSchemeRegex:/^[A-Za-z][-.+A-Za-z0-9]+:/,hasWordCharAfterProtocolRegex:/:[^\s]*?[A-Za-z]/,isValidMatch:function(urlMatch,protocolUrlMatch,protocolRelativeMatch){if(protocolUrlMatch&&!this.isValidUriScheme(protocolUrlMatch)||this.urlMatchDoesNotHaveProtocolOrDot(urlMatch,protocolUrlMatch)||this.urlMatchDoesNotHaveAtLeastOneWordChar(urlMatch,protocolUrlMatch)||this.isInvalidProtocolRelativeMatch(protocolRelativeMatch)){return false}return true},isValidUriScheme:function(uriSchemeMatch){var uriScheme=uriSchemeMatch.match(this.uriSchemeRegex)[0].toLowerCase();return uriScheme!=="javascript:"&&uriScheme!=="vbscript:"},urlMatchDoesNotHaveProtocolOrDot:function(urlMatch,protocolUrlMatch){return!!urlMatch&&(!protocolUrlMatch||!this.hasFullProtocolRegex.test(protocolUrlMatch))&&urlMatch.indexOf(".")===-1},urlMatchDoesNotHaveAtLeastOneWordChar:function(urlMatch,protocolUrlMatch){if(urlMatch&&protocolUrlMatch){return!this.hasWordCharAfterProtocolRegex.test(urlMatch)}else{return false}},isInvalidProtocolRelativeMatch:function(protocolRelativeMatch){return!!protocolRelativeMatch&&this.invalidProtocolRelMatchRegex.test(protocolRelativeMatch)}});Autolinker.match.Match=Autolinker.Util.extend(Object,{constructor:function(cfg){Autolinker.Util.assign(this,cfg)},getType:Autolinker.Util.abstractMethod,getMatchedText:function(){return this.matchedText},getAnchorHref:Autolinker.Util.abstractMethod,getAnchorText:Autolinker.Util.abstractMethod});Autolinker.match.Email=Autolinker.Util.extend(Autolinker.match.Match,{getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}});Autolinker.match.Twitter=Autolinker.Util.extend(Autolinker.match.Match,{getType:function(){return"twitter"},getTwitterHandle:function(){return this.twitterHandle},getAnchorHref:function(){return"https://twitter.com/"+this.twitterHandle},getAnchorText:function(){return"@"+this.twitterHandle}});Autolinker.match.Url=Autolinker.Util.extend(Autolinker.match.Match,{urlPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,protocolPrepended:false,getType:function(){return"url"},getUrl:function(){var url=this.url;if(!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended){url=this.url="http://"+url;this.protocolPrepended=true}return url},getAnchorHref:function(){var url=this.getUrl();return url.replace(/&/g,"&")},getAnchorText:function(){var anchorText=this.getUrl();if(this.protocolRelativeMatch){anchorText=this.stripProtocolRelativePrefix(anchorText)}if(this.stripPrefix){anchorText=this.stripUrlPrefix(anchorText)}anchorText=this.removeTrailingSlash(anchorText);return anchorText},stripUrlPrefix:function(text){return text.replace(this.urlPrefixRegex,"")},stripProtocolRelativePrefix:function(text){return text.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(anchorText){if(anchorText.charAt(anchorText.length-1)==="/"){anchorText=anchorText.slice(0,-1)}return anchorText}});return Autolinker})},{}],remarkable:[function(require,module,exports){"use strict";module.exports=require("./lib/")},{"./lib/":14}]},{},[]);var Remarkable=require("remarkable");var md=new Remarkable;console.log(md.parse("# generator-babel\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Dependency Status][depstat-image]][depstat-url]\n> [Yeoman][yo] generator to setup [Babel][babel] effortlessly. ",{})); |
This file contains 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
{ | |
"name": "requirebin-sketch", | |
"version": "1.0.0", | |
"dependencies": { | |
"remarkable": "1.6.0" | |
} | |
} |
This file contains 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
<!-- contents of this file will be placed inside the <body> --> |
This file contains 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
<!-- contents of this file will be placed inside the <head> --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment