Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created November 30, 2014 01:59
Show Gist options
  • Save brianleroux/3479765845af633fcb56 to your computer and use it in GitHub Desktop.
Save brianleroux/3479765845af633fcb56 to your computer and use it in GitHub Desktop.
requirebin sketch
// hello world
var compile = require('micromark')
, src = ""
src+="# hello world! \n"
src+="- one \n"
src+="- two \n"
src+="- three \n"
var html = compile(src)
document.body.innerHTML = html()
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){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},{}],2:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}if(canPost){var queue=[];window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],3:[function(require,module,exports){module.exports=function isBuffer(arg){return arg&&typeof arg==="object"&&typeof arg.copy==="function"&&typeof arg.fill==="function"&&typeof arg.readUInt8==="function"}},{}],4:[function(require,module,exports){(function(process,global){var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i<arguments.length;i++){objects.push(inspect(arguments[i]))}return objects.join(" ")}var i=1;var args=arguments;var len=args.length;var str=String(f).replace(formatRegExp,function(x){if(x==="%%")return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}});for(var x=args[i];i<len;x=args[++i]){if(isNull(x)||!isObject(x)){str+=" "+x}else{str+=" "+inspect(x)}}return str};exports.deprecate=function(fn,msg){if(isUndefined(global.process)){return function(){return exports.deprecate(fn,msg).apply(this,arguments)}}if(process.noDeprecation===true){return fn}var warned=false;function deprecated(){if(!warned){if(process.throwDeprecation){throw new Error(msg)}else if(process.traceDeprecation){console.trace(msg)}else{console.error(msg)}warned=true}return fn.apply(this,arguments)}return deprecated};var debugs={};var debugEnviron;exports.debuglog=function(set){if(isUndefined(debugEnviron))debugEnviron=process.env.NODE_DEBUG||"";set=set.toUpperCase();if(!debugs[set]){if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else{debugs[set]=function(){}}}return debugs[set]};function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};if(arguments.length>=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){ctx.showHidden=opts}else if(opts){exports._extend(ctx,opts)}if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m"}else{return str}}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes)}return ret}var primitive=formatPrimitive(ctx,value);if(primitive){return primitive}var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value)}if(isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0)){return formatError(value)}if(keys.length===0){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),"date")}if(isError(value)){return formatError(value)}}var base="",array=false,braces=["{","}"];if(isArray(value)){array=true;braces=["[","]"]}if(isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)){base=" "+RegExp.prototype.toString.call(value)}if(isDate(value)){base=" "+Date.prototype.toUTCString.call(value)}if(isError(value)){base=" "+formatError(value)}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}else{return ctx.stylize("[Object]","special")}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys)}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)})}ctx.seen.pop();return reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(isNull(value))return ctx.stylize("null","null")}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i<l;++i){if(hasOwnProperty(value,String(i))){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),true))}else{output.push("")}}keys.forEach(function(key){if(!key.match(/^\d+$/)){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,true))}});return output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]};if(desc.get){if(desc.set){str=ctx.stylize("[Getter/Setter]","special")}else{str=ctx.stylize("[Getter]","special")}}else{if(desc.set){str=ctx.stylize("[Setter]","special")}}if(!hasOwnProperty(visibleKeys,key)){name="["+key+"]"}if(!str){if(ctx.seen.indexOf(desc.value)<0){if(isNull(recurseTimes)){str=formatValue(ctx,desc.value,null)}else{str=formatValue(ctx,desc.value,recurseTimes-1)}if(str.indexOf("\n")>-1){if(array){str=str.split("\n").map(function(line){return" "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return" "+line}).join("\n")}}}else{str=ctx.stylize("[Circular]","special")}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,"string")}}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(length>60){return braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]}return braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;exports.isBuffer=require("./support/isBuffer");function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))};exports.inherits=require("inherits");exports._extend=function(origin,add){if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./support/isBuffer":3,_process:2,inherits:1}],5:[function(require,module,exports){var C_GREATERTHAN=62;var C_SPACE=32;var C_OPEN_BRACKET=91;var InlineParser=require("./inlines");var unescapeString=(new InlineParser).unescapeString;var isBlank=function(s){return/^\s*$/.test(s)};var detabLine=function(text){if(text.indexOf(" ")==-1){return text}else{var lastStop=0;return text.replace(/\t/g,function(match,offset){var result=" ".slice((offset-lastStop)%4);lastStop=offset+1;return result})}};var matchAt=function(re,s,offset){var res=s.slice(offset).match(re);if(res){return offset+res.index}else{return-1}};var BLOCKTAGNAME="(?:article|header|aside|hgroup|iframe|blockquote|hr|body|li|map|button|object|canvas|ol|caption|output|col|p|colgroup|pre|dd|progress|div|section|dl|table|td|dt|tbody|embed|textarea|fieldset|tfoot|figcaption|th|figure|thead|footer|footer|tr|form|ul|h1|h2|h3|h4|h5|h6|video|script|style)";var HTMLBLOCKOPEN="<(?:"+BLOCKTAGNAME+"[\\s/>]"+"|"+"/"+BLOCKTAGNAME+"[\\s>]"+"|"+"[?!])";var reHtmlBlockOpen=new RegExp("^"+HTMLBLOCKOPEN,"i");var reHrule=/^(?:(?:\* *){3,}|(?:_ *){3,}|(?:- *){3,}) *$/;var makeBlock=function(tag,start_line,start_column){return{t:tag,open:true,last_line_blank:false,start_line:start_line,start_column:start_column,end_line:start_line,children:[],parent:null,string_content:"",strings:[],inline_content:[]}};var canContain=function(parent_type,child_type){return parent_type=="Document"||parent_type=="BlockQuote"||parent_type=="ListItem"||parent_type=="List"&&child_type=="ListItem"};var acceptsLines=function(block_type){return block_type=="Paragraph"||block_type=="IndentedCode"||block_type=="FencedCode"};var endsWithBlankLine=function(block){if(block.last_line_blank){return true}if((block.t=="List"||block.t=="ListItem")&&block.children.length>0){return endsWithBlankLine(block.children[block.children.length-1])}else{return false}};var breakOutOfLists=function(block,line_number){var b=block;var last_list=null;do{if(b.t==="List"){last_list=b}b=b.parent}while(b);if(last_list){while(block!=last_list){this.finalize(block,line_number);block=block.parent}this.finalize(last_list,line_number);this.tip=last_list.parent}};var addLine=function(ln,offset){var s=ln.slice(offset);if(!this.tip.open){throw{msg:"Attempted to add line ("+ln+") to closed container."}}this.tip.strings.push(s)};var addChild=function(tag,line_number,offset){while(!canContain(this.tip.t,tag)){this.finalize(this.tip,line_number)}var column_number=offset+1;var newBlock=makeBlock(tag,line_number,column_number);this.tip.children.push(newBlock);newBlock.parent=this.tip;this.tip=newBlock;return newBlock};var parseListMarker=function(ln,offset){var rest=ln.slice(offset);var match;var spaces_after_marker;var data={};if(rest.match(reHrule)){return null}if(match=rest.match(/^[*+-]( +|$)/)){spaces_after_marker=match[1].length;data.type="Bullet";data.bullet_char=match[0][0]}else if(match=rest.match(/^(\d+)([.)])( +|$)/)){spaces_after_marker=match[3].length;data.type="Ordered";data.start=parseInt(match[1]);data.delimiter=match[2]}else{return null}var blank_item=match[0].length===rest.length;if(spaces_after_marker>=5||spaces_after_marker<1||blank_item){data.padding=match[0].length-spaces_after_marker+1}else{data.padding=match[0].length}return data};var listsMatch=function(list_data,item_data){return list_data.type===item_data.type&&list_data.delimiter===item_data.delimiter&&list_data.bullet_char===item_data.bullet_char};var incorporateLine=function(ln,line_number){var all_matched=true;var last_child;var first_nonspace;var offset=0;var match;var data;var blank;var indent;var last_matched_container;var i;var CODE_INDENT=4;var container=this.doc;var oldtip=this.tip;ln=detabLine(ln);while(container.children.length>0){last_child=container.children[container.children.length-1];if(!last_child.open){break}container=last_child;match=matchAt(/[^ ]/,ln,offset);if(match===-1){first_nonspace=ln.length;blank=true}else{first_nonspace=match;blank=false}indent=first_nonspace-offset;switch(container.t){case"BlockQuote":if(indent<=3&&ln.charCodeAt(first_nonspace)===C_GREATERTHAN){offset=first_nonspace+1;if(ln.charCodeAt(offset)===C_SPACE){offset++}}else{all_matched=false}break;case"ListItem":if(indent>=container.list_data.marker_offset+container.list_data.padding){offset+=container.list_data.marker_offset+container.list_data.padding}else if(blank){offset=first_nonspace}else{all_matched=false}break;case"IndentedCode":if(indent>=CODE_INDENT){offset+=CODE_INDENT}else if(blank){offset=first_nonspace}else{all_matched=false}break;case"ATXHeader":case"SetextHeader":case"HorizontalRule":all_matched=false;break;case"FencedCode":i=container.fence_offset;while(i>0&&ln.charCodeAt(offset)===C_SPACE){offset++;i--}break;case"HtmlBlock":if(blank){all_matched=false}break;case"Paragraph":if(blank){container.last_line_blank=true;all_matched=false}break;default:}if(!all_matched){container=container.parent;break}}last_matched_container=container;var closeUnmatchedBlocks=function(mythis){while(!already_done&&oldtip!=last_matched_container){mythis.finalize(oldtip,line_number);oldtip=oldtip.parent}var already_done=true};if(blank&&container.last_line_blank){this.breakOutOfLists(container,line_number)}while(container.t!="FencedCode"&&container.t!="IndentedCode"&&container.t!="HtmlBlock"&&matchAt(/^[ #`~*+_=<>0-9-]/,ln,offset)!==-1){match=matchAt(/[^ ]/,ln,offset);if(match===-1){first_nonspace=ln.length;blank=true}else{first_nonspace=match;blank=false}indent=first_nonspace-offset;if(indent>=CODE_INDENT){if(this.tip.t!="Paragraph"&&!blank){offset+=CODE_INDENT;closeUnmatchedBlocks(this);container=this.addChild("IndentedCode",line_number,offset)}else{break}}else if(ln.charCodeAt(first_nonspace)===C_GREATERTHAN){offset=first_nonspace+1;if(ln.charCodeAt(offset)===C_SPACE){offset++}closeUnmatchedBlocks(this);container=this.addChild("BlockQuote",line_number,offset)}else if(match=ln.slice(first_nonspace).match(/^#{1,6}(?: +|$)/)){offset=first_nonspace+match[0].length;closeUnmatchedBlocks(this);container=this.addChild("ATXHeader",line_number,first_nonspace);container.level=match[0].trim().length;container.strings=[ln.slice(offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"")];break}else if(match=ln.slice(first_nonspace).match(/^`{3,}(?!.*`)|^~{3,}(?!.*~)/)){var fence_length=match[0].length;closeUnmatchedBlocks(this);container=this.addChild("FencedCode",line_number,first_nonspace);container.fence_length=fence_length;container.fence_char=match[0][0];container.fence_offset=first_nonspace-offset;offset=first_nonspace+fence_length;break}else if(matchAt(reHtmlBlockOpen,ln,first_nonspace)!==-1){closeUnmatchedBlocks(this);container=this.addChild("HtmlBlock",line_number,first_nonspace);break}else if(container.t=="Paragraph"&&container.strings.length===1&&(match=ln.slice(first_nonspace).match(/^(?:=+|-+) *$/))){closeUnmatchedBlocks(this);container.t="SetextHeader";container.level=match[0][0]==="="?1:2;offset=ln.length}else if(matchAt(reHrule,ln,first_nonspace)!==-1){closeUnmatchedBlocks(this);container=this.addChild("HorizontalRule",line_number,first_nonspace);offset=ln.length-1;break}else if(data=parseListMarker(ln,first_nonspace)){closeUnmatchedBlocks(this);data.marker_offset=indent;offset=first_nonspace+data.padding;if(container.t!=="List"||!listsMatch(container.list_data,data)){container=this.addChild("List",line_number,first_nonspace);container.list_data=data}container=this.addChild("ListItem",line_number,first_nonspace);container.list_data=data}else{break}if(acceptsLines(container.t)){break}}match=matchAt(/[^ ]/,ln,offset);if(match===-1){first_nonspace=ln.length;blank=true}else{first_nonspace=match;blank=false}indent=first_nonspace-offset;if(this.tip!==last_matched_container&&!blank&&this.tip.t=="Paragraph"&&this.tip.strings.length>0){this.last_line_blank=false;this.addLine(ln,offset)}else{closeUnmatchedBlocks(this);container.last_line_blank=blank&&!(container.t=="BlockQuote"||container.t=="FencedCode"||container.t=="ListItem"&&container.children.length===0&&container.start_line==line_number);var cont=container;while(cont.parent){cont.parent.last_line_blank=false;cont=cont.parent}switch(container.t){case"IndentedCode":case"HtmlBlock":this.addLine(ln,offset);break;case"FencedCode":match=indent<=3&&ln.charAt(first_nonspace)==container.fence_char&&ln.slice(first_nonspace).match(/^(?:`{3,}|~{3,})(?= *$)/);if(match&&match[0].length>=container.fence_length){this.finalize(container,line_number)}else{this.addLine(ln,offset)}break;case"ATXHeader":case"SetextHeader":case"HorizontalRule":break;default:if(acceptsLines(container.t)){this.addLine(ln,first_nonspace)}else if(blank){}else if(container.t!="HorizontalRule"&&container.t!="SetextHeader"){container=this.addChild("Paragraph",line_number,first_nonspace);this.addLine(ln,first_nonspace)}else{console.log("Line "+line_number.toString()+" with container type "+container.t+" did not match any condition.")}}}};var finalize=function(block,line_number){var pos;if(!block.open){return 0}block.open=false;if(line_number>block.start_line){block.end_line=line_number-1}else{block.end_line=line_number}switch(block.t){case"Paragraph":block.string_content=block.strings.join("\n").replace(/^ */m,"");while(block.string_content.charCodeAt(0)===C_OPEN_BRACKET&&(pos=this.inlineParser.parseReference(block.string_content,this.refmap))){block.string_content=block.string_content.slice(pos);if(isBlank(block.string_content)){block.t="ReferenceDef";break}}break;case"ATXHeader":case"SetextHeader":case"HtmlBlock":block.string_content=block.strings.join("\n");break;case"IndentedCode":block.string_content=block.strings.join("\n").replace(/(\n *)*$/,"\n");break;case"FencedCode":block.info=unescapeString(block.strings[0].trim());if(block.strings.length==1){block.string_content=""}else{block.string_content=block.strings.slice(1).join("\n")+"\n"}break;case"List":block.tight=true;var numitems=block.children.length;var i=0;while(i<numitems){var item=block.children[i];var last_item=i==numitems-1;if(endsWithBlankLine(item)&&!last_item){block.tight=false;break}var numsubitems=item.children.length;var j=0;while(j<numsubitems){var subitem=item.children[j];var last_subitem=j==numsubitems-1;if(endsWithBlankLine(subitem)&&!(last_item&&last_subitem)){block.tight=false;break}j++}i++}break;default:break}this.tip=block.parent||this.top};var processInlines=function(block){var newblock={};newblock.t=block.t;newblock.start_line=block.start_line;newblock.start_column=block.start_column;newblock.end_line=block.end_line;switch(block.t){case"Paragraph":newblock.inline_content=this.inlineParser.parse(block.string_content.trim(),this.refmap);break;case"SetextHeader":case"ATXHeader":newblock.inline_content=this.inlineParser.parse(block.string_content.trim(),this.refmap);newblock.level=block.level;break;case"List":newblock.list_data=block.list_data;newblock.tight=block.tight;break;case"FencedCode":newblock.string_content=block.string_content;newblock.info=block.info;break;case"IndentedCode":case"HtmlBlock":newblock.string_content=block.string_content;break;default:break}if(block.children){var newchildren=[];for(var i=0;i<block.children.length;i++){newchildren.push(this.processInlines(block.children[i]))}newblock.children=newchildren}return newblock};var parse=function(input){this.doc=makeBlock("Document",1,1);this.tip=this.doc;this.refmap={};var lines=input.replace(/\n$/,"").split(/\r\n|\n|\r/);var len=lines.length;for(var i=0;i<len;i++){this.incorporateLine(lines[i],i+1)}while(this.tip){this.finalize(this.tip,len-1)}return this.processInlines(this.doc)};function DocParser(){return{doc:makeBlock("Document",1,1),tip:this.doc,refmap:{},inlineParser:new InlineParser,breakOutOfLists:breakOutOfLists,addLine:addLine,addChild:addChild,incorporateLine:incorporateLine,finalize:finalize,processInlines:processInlines,parse:parse}}module.exports=DocParser},{"./inlines":10}],6:[function(require,module,exports){if(String.fromCodePoint){module.exports=String.fromCodePoint}else{var stringFromCharCode=String.fromCharCode;var floor=Math.floor;var fromCodePoint=function(_){var MAX_SIZE=16384;var codeUnits=[];var highSurrogate;var lowSurrogate;var index=-1;var length=arguments.length;if(!length){return""}var result="";while(++index<length){var codePoint=Number(arguments[index]);if(!isFinite(codePoint)||codePoint<0||codePoint>1114111||floor(codePoint)!=codePoint){return String.fromCharCode(65533)}if(codePoint<=65535){codeUnits.push(codePoint)}else{codePoint-=65536;highSurrogate=(codePoint>>10)+55296;lowSurrogate=codePoint%1024+56320;codeUnits.push(highSurrogate,lowSurrogate)}if(index+1==length||codeUnits.length>MAX_SIZE){result+=stringFromCharCode.apply(null,codeUnits);codeUnits.length=0}}return result};module.exports=fromCodePoint}},{}],7:[function(require,module,exports){var inTags=function(tag,attribs,contents,selfclosing){var result="<"+tag;if(attribs){var i=0;var attrib;while((attrib=attribs[i])!==undefined){result=result.concat(" ",attrib[0],'="',attrib[1],'"');i++}}if(contents){result=result.concat(">",contents,"</",tag,">")}else if(selfclosing){result=result+" />"}else{result=result.concat("></",tag,">")}return result};var renderInline=function(inline){var attrs;switch(inline.t){case"Str":return this.escape(inline.c);case"Softbreak":return this.softbreak;case"Hardbreak":return inTags("br",[],"",true)+"\n";case"Emph":return inTags("em",[],this.renderInlines(inline.c));case"Strong":return inTags("strong",[],this.renderInlines(inline.c));case"Html":return inline.c;case"Link":attrs=[["href",this.escape(inline.destination,true)]];if(inline.title){attrs.push(["title",this.escape(inline.title,true)])}return inTags("a",attrs,this.renderInlines(inline.label));case"Image":attrs=[["src",this.escape(inline.destination,true)],["alt",this.renderInlines(inline.label).replace(/\<[^>]*alt="([^"]*)"[^>]*\>/g,"$1").replace(/\<[^>]*\>/g,"")]];if(inline.title){attrs.push(["title",this.escape(inline.title,true)])}return inTags("img",attrs,"",true);case"Code":return inTags("code",[],this.escape(inline.c));default:console.log("Unknown inline type "+inline.t);return""}};var renderInlines=function(inlines){var result="";for(var i=0;i<inlines.length;i++){result=result+this.renderInline(inlines[i])}return result};var renderBlock=function(block,in_tight_list){var tag;var attr;var info_words;switch(block.t){case"Document":var whole_doc=this.renderBlocks(block.children);return whole_doc===""?"":whole_doc+"\n";case"Paragraph":if(in_tight_list){return this.renderInlines(block.inline_content)}else{return inTags("p",[],this.renderInlines(block.inline_content))}break;case"BlockQuote":var filling=this.renderBlocks(block.children);return inTags("blockquote",[],filling===""?this.innersep:this.innersep+filling+this.innersep);case"ListItem":return inTags("li",[],this.renderBlocks(block.children,in_tight_list).trim());case"List":tag=block.list_data.type=="Bullet"?"ul":"ol";attr=!block.list_data.start||block.list_data.start==1?[]:[["start",block.list_data.start.toString()]];return inTags(tag,attr,this.innersep+this.renderBlocks(block.children,block.tight)+this.innersep);case"ATXHeader":case"SetextHeader":tag="h"+block.level;return inTags(tag,[],this.renderInlines(block.inline_content));case"IndentedCode":return inTags("pre",[],inTags("code",[],this.escape(block.string_content)));case"FencedCode":info_words=block.info.split(/ +/);attr=info_words.length===0||info_words[0].length===0?[]:[["class","language-"+this.escape(info_words[0],true)]];return inTags("pre",[],inTags("code",attr,this.escape(block.string_content)));case"HtmlBlock":return block.string_content;case"ReferenceDef":return"";case"HorizontalRule":return inTags("hr",[],"",true);default:console.log("Unknown block type "+block.t);return""}};var renderBlocks=function(blocks,in_tight_list){var result=[];for(var i=0;i<blocks.length;i++){if(blocks[i].t!=="ReferenceDef"){result.push(this.renderBlock(blocks[i],in_tight_list))}}return result.join(this.blocksep)};function HtmlRenderer(){return{blocksep:"\n",innersep:"\n",softbreak:"\n",escape:function(s,preserve_entities){if(preserve_entities){return s.replace(/[&](?![#](x[a-f0-9]{1,8}|[0-9]{1,8});|[a-z][a-z0-9]{1,31};)/gi,"&amp;").replace(/[<]/g,"&lt;").replace(/[>]/g,"&gt;").replace(/["]/g,"&quot;")}else{return s.replace(/[&]/g,"&amp;").replace(/[<]/g,"&lt;").replace(/[>]/g,"&gt;").replace(/["]/g,"&quot;")}},renderInline:renderInline,renderInlines:renderInlines,renderBlock:renderBlock,renderBlocks:renderBlocks,render:renderBlock}}module.exports=HtmlRenderer},{}],8:[function(require,module,exports){var fromCodePoint=require("./from-code-point");var entities={AAacute:"Á",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:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",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:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",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:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",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:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",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:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",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:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",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:"▫",emsp13:" ",emsp14:" ",emsp:" ",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:"f",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:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩",gvnE:"≩",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",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",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",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:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",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:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",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:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",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:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",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:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",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:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎",nbumpe:"≏",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",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:"⋶",NotLeftTriangleBar:"⧏",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪",NotLessSlantEqual:"⩽",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢",NotNestedLessLess:"⪡",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐",NotSquareSupersetEqual:"⋣",NotSubset:"⊂",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿",NotSuperset:"⊃",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽",npart:"∂",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯",npre:"⪯",nrarrc:"⤳",nrarr:"↛",nrArr:"⇏",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:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",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:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",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:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",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:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",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:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",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:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",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:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓",sqcup:"⊔",sqcups:"⊔",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",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:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",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:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",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:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",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:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",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:"‌"};
var entityToChar=function(m){var isNumeric=/^&#/.test(m);var isHex=/^&#[Xx]/.test(m);var uchar;if(isNumeric){var num;if(isHex){num=parseInt(m.slice(3,-1),16)}else{num=parseInt(m.slice(2,-1),10)}uchar=fromCodePoint(num)}else{uchar=entities[m.slice(1,-1)]}return uchar||m};module.exports.entityToChar=entityToChar},{"./from-code-point":6}],9:[function(require,module,exports){var util=require("util");var renderAST=function(tree){return util.inspect(tree,{depth:null})};module.exports.DocParser=require("./blocks");module.exports.HtmlRenderer=require("./html-renderer");module.exports.ASTRenderer=renderAST},{"./blocks":5,"./html-renderer":7,util:4}],10:[function(require,module,exports){var fromCodePoint=require("./from-code-point.js");var entityToChar=require("./html5-entities.js").entityToChar;var C_NEWLINE=10;var C_SPACE=32;var C_ASTERISK=42;var C_UNDERSCORE=95;var C_BACKTICK=96;var C_OPEN_BRACKET=91;var C_CLOSE_BRACKET=93;var C_LESSTHAN=60;var C_GREATERTHAN=62;var C_BANG=33;var C_BACKSLASH=92;var C_AMPERSAND=38;var C_OPEN_PAREN=40;var C_COLON=58;var ESCAPABLE="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]";var ESCAPED_CHAR="\\\\"+ESCAPABLE;var IN_DOUBLE_QUOTES='"('+ESCAPED_CHAR+'|[^"\\x00])*"';var IN_SINGLE_QUOTES="'("+ESCAPED_CHAR+"|[^'\\x00])*'";var IN_PARENS="\\(("+ESCAPED_CHAR+"|[^)\\x00])*\\)";var REG_CHAR="[^\\\\()\\x00-\\x20]";var IN_PARENS_NOSP="\\(("+REG_CHAR+"|"+ESCAPED_CHAR+")*\\)";var TAGNAME="[A-Za-z][A-Za-z0-9]*";var ATTRIBUTENAME="[a-zA-Z_:][a-zA-Z0-9:._-]*";var UNQUOTEDVALUE="[^\"'=<>`\\x00-\\x20]+";var SINGLEQUOTEDVALUE="'[^']*'";var DOUBLEQUOTEDVALUE='"[^"]*"';var ATTRIBUTEVALUE="(?:"+UNQUOTEDVALUE+"|"+SINGLEQUOTEDVALUE+"|"+DOUBLEQUOTEDVALUE+")";var ATTRIBUTEVALUESPEC="(?:"+"\\s*="+"\\s*"+ATTRIBUTEVALUE+")";var ATTRIBUTE="(?:"+"\\s+"+ATTRIBUTENAME+ATTRIBUTEVALUESPEC+"?)";var OPENTAG="<"+TAGNAME+ATTRIBUTE+"*"+"\\s*/?>";var CLOSETAG="</"+TAGNAME+"\\s*[>]";var HTMLCOMMENT="<!--([^-]+|[-][^-]+)*-->";var PROCESSINGINSTRUCTION="[<][?].*?[?][>]";var DECLARATION="<![A-Z]+"+"\\s+[^>]*>";var CDATA="<!\\[CDATA\\[([^\\]]+|\\][^\\]]|\\]\\][^>])*\\]\\]>";var HTMLTAG="(?:"+OPENTAG+"|"+CLOSETAG+"|"+HTMLCOMMENT+"|"+PROCESSINGINSTRUCTION+"|"+DECLARATION+"|"+CDATA+")";var ENTITY="&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});";var reHtmlTag=new RegExp("^"+HTMLTAG,"i");var reLinkTitle=new RegExp('^(?:"('+ESCAPED_CHAR+'|[^"\\x00])*"'+"|"+"'("+ESCAPED_CHAR+"|[^'\\x00])*'"+"|"+"\\(("+ESCAPED_CHAR+"|[^)\\x00])*\\))");var reLinkDestinationBraces=new RegExp("^(?:[<](?:[^<>\\n\\\\\\x00]"+"|"+ESCAPED_CHAR+"|"+"\\\\)*[>])");var reLinkDestination=new RegExp("^(?:"+REG_CHAR+"+|"+ESCAPED_CHAR+"|"+IN_PARENS_NOSP+")*");var reEscapable=new RegExp(ESCAPABLE);var reAllEscapedChar=new RegExp("\\\\("+ESCAPABLE+")","g");var reEscapedChar=new RegExp("^\\\\("+ESCAPABLE+")");var reEntityHere=new RegExp("^"+ENTITY,"i");var reEntity=new RegExp(ENTITY,"gi");var reMain=/^(?:[_*`\n]+|[\[\]\\!<&*_]|(?: *[^\n `\[\]\\!<&*_]+)+|[ \n]+)/m;var unescapeString=function(s){return s.replace(reAllEscapedChar,"$1").replace(reEntity,entityToChar)};var normalizeReference=function(s){return s.trim().replace(/\s+/," ").toUpperCase()};var match=function(re){var match=re.exec(this.subject.slice(this.pos));if(match){this.pos+=match.index+match[0].length;return match[0]}else{return null}};var peek=function(){if(this.pos<this.subject.length){return this.subject.charCodeAt(this.pos)}else{return-1}};var spnl=function(){this.match(/^ *(?:\n *)?/);return 1};var parseBackticks=function(inlines){var startpos=this.pos;var ticks=this.match(/^`+/);if(!ticks){return 0}var afterOpenTicks=this.pos;var foundCode=false;var match;while(!foundCode&&(match=this.match(/`+/m))){if(match===ticks){inlines.push({t:"Code",c:this.subject.slice(afterOpenTicks,this.pos-ticks.length).replace(/[ \n]+/g," ").trim()});return true}}this.pos=afterOpenTicks;inlines.push({t:"Str",c:ticks});return true};var parseBackslash=function(inlines){var subj=this.subject,pos=this.pos;if(subj.charCodeAt(pos)===C_BACKSLASH){if(subj.charAt(pos+1)==="\n"){this.pos=this.pos+2;inlines.push({t:"Hardbreak"})}else if(reEscapable.test(subj.charAt(pos+1))){this.pos=this.pos+2;inlines.push({t:"Str",c:subj.charAt(pos+1)})}else{this.pos++;inlines.push({t:"Str",c:"\\"})}return true}else{return false}};var parseAutolink=function(inlines){var m;var dest;if(m=this.match(/^<([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])?)*)>/)){dest=m.slice(1,-1);inlines.push({t:"Link",label:[{t:"Str",c:dest}],destination:"mailto:"+encodeURI(unescape(dest))});return true}else if(m=this.match(/^<(?: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):[^<>\x00-\x20]*>/i)){dest=m.slice(1,-1);inlines.push({t:"Link",label:[{t:"Str",c:dest}],destination:encodeURI(unescape(dest))});return true}else{return false}};var parseHtmlTag=function(inlines){var m=this.match(reHtmlTag);if(m){inlines.push({t:"Html",c:m});return true}else{return false}};var scanDelims=function(cc){var numdelims=0;var first_close_delims=0;var char_before,char_after,cc_after;var startpos=this.pos;char_before=this.pos===0?"\n":this.subject.charAt(this.pos-1);while(this.peek()===cc){numdelims++;this.pos++}cc_after=this.peek();if(cc_after===-1){char_after="\n"}else{char_after=fromCodePoint(cc_after)}var can_open=numdelims>0&&!/\s/.test(char_after);var can_close=numdelims>0&&!/\s/.test(char_before);if(cc===C_UNDERSCORE){can_open=can_open&&!/[a-z0-9]/i.test(char_before);can_close=can_close&&!/[a-z0-9]/i.test(char_after)}this.pos=startpos;return{numdelims:numdelims,can_open:can_open,can_close:can_close}};var Emph=function(ils){return{t:"Emph",c:ils}};var Strong=function(ils){return{t:"Strong",c:ils}};var Str=function(s){return{t:"Str",c:s}};var parseEmphasis=function(cc,inlines){var res=this.scanDelims(cc);var numdelims=res.numdelims;var startpos=this.pos;if(numdelims===0){return false}this.pos+=numdelims;inlines.push(Str(this.subject.slice(startpos,this.pos)));this.delimiters={cc:cc,numdelims:numdelims,pos:inlines.length-1,previous:this.delimiters,next:null,can_open:res.can_open,can_close:res.can_close};if(this.delimiters.previous!==null){this.delimiters.previous.next=this.delimiters}return true};var removeDelimiter=function(delim){if(delim.previous!==null){delim.previous.next=delim.next}if(delim.next===null){this.delimiters=delim.previous}else{delim.next.previous=delim.previous}};var removeGaps=function(inlines){var i,j;j=0;for(i=0;i<inlines.length;i++){if(inlines[i]!==null){inlines[j]=inlines[i];j++}}inlines.splice(j)};var processEmphasis=function(inlines,stack_bottom){var opener,closer;var opener_inl,closer_inl;var nextstack,tempstack;var use_delims;var contents;var tmp;var emph;var i,j;closer=this.delimiters;while(closer!==null&&closer.previous!==stack_bottom){closer=closer.previous}while(closer!==null){if(closer.can_close&&(closer.cc===C_UNDERSCORE||closer.cc===C_ASTERISK)){opener=closer.previous;while(opener!==null&&opener!==stack_bottom){if(opener.cc===closer.cc&&opener.can_open){break}opener=opener.previous}if(opener!==null&&opener!==stack_bottom){if(closer.numdelims<3||opener.numdelims<3){use_delims=closer.numdelims<=opener.numdelims?closer.numdelims:opener.numdelims}else{use_delims=closer.numdelims%2===0?2:1}opener_inl=inlines[opener.pos];closer_inl=inlines[closer.pos];opener.numdelims-=use_delims;closer.numdelims-=use_delims;opener_inl.c=opener_inl.c.slice(0,opener_inl.c.length-use_delims);closer_inl.c=closer_inl.c.slice(0,closer_inl.c.length-use_delims);contents=inlines.slice(opener.pos+1,closer.pos);removeGaps(contents);emph=use_delims===1?Emph(contents):Strong(contents);inlines[opener.pos+1]=emph;for(i=opener.pos+2;i<closer.pos;i++){inlines[i]=null}tempstack=closer.previous;while(tempstack!==null&&tempstack!==opener){nextstack=tempstack.previous;this.removeDelimiter(tempstack);tempstack=nextstack}if(opener.numdelims===0){inlines[opener.pos]=null;this.removeDelimiter(opener)}if(closer.numdelims===0){inlines[closer.pos]=null;tempstack=closer.next;this.removeDelimiter(closer);closer=tempstack}}else{closer=closer.next}}else{closer=closer.next}}removeGaps(inlines);while(this.delimiters!=stack_bottom){this.removeDelimiter(this.delimiters)}};var parseLinkTitle=function(){var title=this.match(reLinkTitle);if(title){return unescapeString(title.substr(1,title.length-2))}else{return null}};var parseLinkDestination=function(){var res=this.match(reLinkDestinationBraces);if(res){return encodeURI(unescape(unescapeString(res.substr(1,res.length-2))))}else{res=this.match(reLinkDestination);if(res!==null){return encodeURI(unescape(unescapeString(res)))}else{return null}}};var parseLinkLabel=function(){var match=this.match(/^\[(?:[^\\\[\]]|\\[\[\]]){0,1000}\]/);return match===null?0:match.length};var parseRawLabel=function(s){return(new InlineParser).parse(s.substr(1,s.length-2),{})};var parseOpenBracket=function(inlines){var startpos=this.pos;this.pos+=1;inlines.push(Str("["));this.delimiters={cc:C_OPEN_BRACKET,numdelims:1,pos:inlines.length-1,previous:this.delimiters,next:null,can_open:true,can_close:false,index:startpos};if(this.delimiters.previous!==null){this.delimiters.previous.next=this.delimiters}return true};var parseBang=function(inlines){var startpos=this.pos;this.pos+=1;if(this.peek()===C_OPEN_BRACKET){this.pos+=1;inlines.push(Str("!["));this.delimiters={cc:C_BANG,numdelims:1,pos:inlines.length-1,previous:this.delimiters,next:null,can_open:true,can_close:false,index:startpos+1};if(this.delimiters.previous!==null){this.delimiters.previous.next=this.delimiters}}else{inlines.push(Str("!"))}return true};var parseCloseBracket=function(inlines){var startpos;var is_image;var dest;var title;var matched=false;var link_text;var i;var opener,closer_above,tempstack;this.pos+=1;startpos=this.pos;opener=this.delimiters;while(opener!==null){if(opener.cc===C_OPEN_BRACKET||opener.cc===C_BANG){break}opener=opener.previous}if(opener===null){inlines.push(Str("]"));return true}is_image=opener.cc===C_BANG;link_text=inlines.slice(0);for(i=0;i<opener.pos+1;i++){link_text[i]=null}if(this.peek()===C_OPEN_PAREN){this.pos++;if(this.spnl()&&(dest=this.parseLinkDestination())!==null&&this.spnl()&&(/^\s/.test(this.subject.charAt(this.pos-1))&&(title=this.parseLinkTitle()||"")||true)&&this.spnl()&&this.match(/^\)/)){matched=true}}else{var savepos=this.pos;this.spnl();var beforelabel=this.pos;n=this.parseLinkLabel();if(n===0||n===2){reflabel=this.subject.slice(opener.index,startpos)}else{reflabel=this.subject.slice(beforelabel,beforelabel+n)}var link=this.refmap[normalizeReference(reflabel)];if(link){dest=link.destination;title=link.title;matched=true}}if(matched){this.processEmphasis(link_text,opener.previous);for(i=opener.pos;i<inlines.length;i++){inlines[i]=null}if(!is_image){opener=this.delimiters;closer_above=null;while(opener!==null){if(opener.cc===C_OPEN_BRACKET){if(closer_above){closer_above.previous=opener.previous}else{this.delimiters=opener.previous}}else{closer_above=opener}opener=opener.previous}}inlines.push({t:is_image?"Image":"Link",destination:dest,title:title,label:link_text});return true}else{this.removeDelimiter(opener);this.pos=startpos;inlines.push(Str("]"));return true}};var parseEntity=function(inlines){var m;if(m=this.match(reEntityHere)){inlines.push({t:"Str",c:entityToChar(m)});return true}else{return false}};var parseString=function(inlines){var m;if(m=this.match(reMain)){inlines.push({t:"Str",c:m});return true}else{return false}};var parseNewline=function(inlines){var m=this.match(/^ *\n/);if(m){if(m.length>2){inlines.push({t:"Hardbreak"})}else if(m.length>0){inlines.push({t:"Softbreak"})}return true}return false};var parseImage=function(inlines){if(this.match(/^!/)){var link=this.parseLink(inlines);if(link){inlines[inlines.length-1].t="Image";return true}else{inlines.push({t:"Str",c:"!"});return true}}else{return false}};var parseReference=function(s,refmap){this.subject=s;this.pos=0;this.label_nest_level=0;var rawlabel;var dest;var title;var matchChars;var startpos=this.pos;var match;matchChars=this.parseLinkLabel();if(matchChars===0){return 0}else{rawlabel=this.subject.substr(0,matchChars)}if(this.peek()===C_COLON){this.pos++}else{this.pos=startpos;return 0}this.spnl();dest=this.parseLinkDestination();if(dest===null||dest.length===0){this.pos=startpos;return 0}var beforetitle=this.pos;this.spnl();title=this.parseLinkTitle();if(title===null){title="";this.pos=beforetitle}if(this.match(/^ *(?:\n|$)/)===null){this.pos=startpos;return 0}var normlabel=normalizeReference(rawlabel);if(!refmap[normlabel]){refmap[normlabel]={destination:dest,title:title}}return this.pos-startpos};var parseInline=function(inlines){var startpos=this.pos;var origlen=inlines.length;var c=this.peek();if(c===-1){return false}var res;switch(c){case C_NEWLINE:case C_SPACE:res=this.parseNewline(inlines);break;case C_BACKSLASH:res=this.parseBackslash(inlines);break;case C_BACKTICK:res=this.parseBackticks(inlines);break;case C_ASTERISK:case C_UNDERSCORE:res=this.parseEmphasis(c,inlines);break;case C_OPEN_BRACKET:res=this.parseOpenBracket(inlines);break;case C_BANG:res=this.parseBang(inlines);break;case C_CLOSE_BRACKET:res=this.parseCloseBracket(inlines);break;case C_LESSTHAN:res=this.parseAutolink(inlines)||this.parseHtmlTag(inlines);break;case C_AMPERSAND:res=this.parseEntity(inlines);break;default:res=this.parseString(inlines);break}if(!res){this.pos+=1;inlines.push({t:"Str",c:fromCodePoint(c)})}return true};var parseInlines=function(s,refmap){this.subject=s;this.pos=0;this.refmap=refmap||{};this.delimiters=null;var inlines=[];while(this.parseInline(inlines)){}this.processEmphasis(inlines,null);return inlines};function InlineParser(){return{subject:"",label_nest_level:0,delimiters:null,pos:0,refmap:{},match:match,peek:peek,spnl:spnl,unescapeString:unescapeString,parseBackticks:parseBackticks,parseBackslash:parseBackslash,parseAutolink:parseAutolink,parseHtmlTag:parseHtmlTag,scanDelims:scanDelims,parseEmphasis:parseEmphasis,parseLinkTitle:parseLinkTitle,parseLinkDestination:parseLinkDestination,parseLinkLabel:parseLinkLabel,parseOpenBracket:parseOpenBracket,parseCloseBracket:parseCloseBracket,parseBang:parseBang,parseEntity:parseEntity,parseString:parseString,parseNewline:parseNewline,parseReference:parseReference,parseInline:parseInline,processEmphasis:processEmphasis,removeDelimiter:removeDelimiter,parse:parseInlines}}module.exports=InlineParser},{"./from-code-point.js":6,"./html5-entities.js":8}],11:[function(require,module,exports){var defaults=require("lodash.defaults"),escape=require("lodash.escape"),escapeStringChar=require("lodash._escapestringchar"),keys=require("lodash.keys"),reInterpolate=require("lodash._reinterpolate"),templateSettings=require("lodash.templatesettings"),values=require("lodash.values");var reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var reNoMatch=/($^)/;var reUnescapedString=/['\n\r\t\u2028\u2029\\]/g;function template(text,data,options){var settings=templateSettings.imports._.templateSettings||templateSettings;text=String(text||"");options=defaults({},options,settings);var imports=defaults({},options.imports,settings.imports),importsKeys=keys(imports),importsValues=values(imports);var isEvaluating,index=0,interpolate=options.interpolate||reNoMatch,source="__p += '";var reDelimiters=RegExp((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");text.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){interpolateValue||(interpolateValue=esTemplateValue);source+=text.slice(index,offset).replace(reUnescapedString,escapeStringChar);if(escapeValue){source+="' +\n__e("+escapeValue+") +\n'"}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '"}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'"}index=offset+match.length;return match});source+="';\n";var variable=options.variable,hasVariable=variable;if(!hasVariable){variable="obj";source="with ("+variable+") {\n"+source+"\n}\n"}source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+variable+") {\n"+(hasVariable?"":variable+" || ("+variable+" = {});\n")+"var __t, __p = '', __e = _.escape"+(isEvaluating?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";try{var result=Function(importsKeys,"return "+source).apply(undefined,importsValues)}catch(e){e.source=source;throw e}if(data){return result(data)}result.source=source;return result}module.exports=template},{"lodash._escapestringchar":12,"lodash._reinterpolate":13,"lodash.defaults":14,"lodash.escape":16,"lodash.keys":21,"lodash.templatesettings":27,"lodash.values":28}],12:[function(require,module,exports){var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(match){return"\\"+stringEscapes[match]}module.exports=escapeStringChar},{}],13:[function(require,module,exports){var reInterpolate=/<%=([\s\S]+?)%>/g;module.exports=reInterpolate},{}],14:[function(require,module,exports){var keys=require("lodash.keys"),objectTypes=require("lodash._objecttypes");var defaults=function(object,source,guard){var index,iterable=object,result=iterable;if(!iterable)return result;var args=arguments,argsIndex=0,argsLength=typeof guard=="number"?2:args.length;while(++argsIndex<argsLength){iterable=args[argsIndex];if(iterable&&objectTypes[typeof iterable]){var ownIndex=-1,ownProps=objectTypes[typeof iterable]&&keys(iterable),length=ownProps?ownProps.length:0;while(++ownIndex<length){index=ownProps[ownIndex];if(typeof result[index]=="undefined")result[index]=iterable[index]}}}return result};module.exports=defaults},{"lodash._objecttypes":15,"lodash.keys":21}],15:[function(require,module,exports){var objectTypes={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false};module.exports=objectTypes},{}],16:[function(require,module,exports){var escapeHtmlChar=require("lodash._escapehtmlchar"),keys=require("lodash.keys"),reUnescapedHtml=require("lodash._reunescapedhtml");function escape(string){return string==null?"":String(string).replace(reUnescapedHtml,escapeHtmlChar)}module.exports=escape},{"lodash._escapehtmlchar":17,"lodash._reunescapedhtml":19,"lodash.keys":21}],17:[function(require,module,exports){var htmlEscapes=require("lodash._htmlescapes");function escapeHtmlChar(match){return htmlEscapes[match]}module.exports=escapeHtmlChar},{"lodash._htmlescapes":18}],18:[function(require,module,exports){var htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};module.exports=htmlEscapes},{}],19:[function(require,module,exports){var htmlEscapes=require("lodash._htmlescapes"),keys=require("lodash.keys");var reUnescapedHtml=RegExp("["+keys(htmlEscapes).join("")+"]","g");module.exports=reUnescapedHtml},{"lodash._htmlescapes":20,"lodash.keys":21}],20:[function(require,module,exports){module.exports=require(18)},{}],21:[function(require,module,exports){var isNative=require("lodash._isnative"),isObject=require("lodash.isobject"),shimKeys=require("lodash._shimkeys");var nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys;var keys=!nativeKeys?shimKeys:function(object){if(!isObject(object)){return[]}return nativeKeys(object)};module.exports=keys},{"lodash._isnative":22,"lodash._shimkeys":23,"lodash.isobject":25}],22:[function(require,module,exports){var objectProto=Object.prototype;var toString=objectProto.toString;var reNative=RegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");function isNative(value){return typeof value=="function"&&reNative.test(value)}module.exports=isNative},{}],23:[function(require,module,exports){var objectTypes=require("lodash._objecttypes");var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var shimKeys=function(object){var index,iterable=object,result=[];if(!iterable)return result;if(!objectTypes[typeof object])return result;for(index in iterable){if(hasOwnProperty.call(iterable,index)){result.push(index)}}return result};module.exports=shimKeys},{"lodash._objecttypes":24}],24:[function(require,module,exports){module.exports=require(15)},{}],25:[function(require,module,exports){var objectTypes=require("lodash._objecttypes");function isObject(value){return!!(value&&objectTypes[typeof value])}module.exports=isObject},{"lodash._objecttypes":26}],26:[function(require,module,exports){module.exports=require(15)},{}],27:[function(require,module,exports){var escape=require("lodash.escape"),reInterpolate=require("lodash._reinterpolate");var templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:reInterpolate,variable:"",imports:{_:{escape:escape}}};module.exports=templateSettings},{"lodash._reinterpolate":13,"lodash.escape":16}],28:[function(require,module,exports){var keys=require("lodash.keys");function values(object){var index=-1,props=keys(object),length=props.length,result=Array(length);while(++index<length){result[index]=object[props[index]]}return result}module.exports=values},{"lodash.keys":21}],micromark:[function(require,module,exports){var commonmark=require("commonmark"),reader=new commonmark.DocParser,writer=new commonmark.HtmlRenderer,template=require("lodash.template");function toHTML(markdown){return writer.render(reader.parse(markdown))}function compile(){var args=[].splice.call(arguments,0),src=args[0],data=args[1];if(args.length===1){return function compiled(data){return toHTML(template(src)(data))}}else if(args.length===2){var md=template(src)(data);return toHTML(md)}else{throw new Error("could not compile template")}}module.exports=compile},{commonmark:9,"lodash.template":11}]},{},[]);var compile=require("micromark"),src="";src+="# hello world! \n";src+="- one \n";src+="- two \n";src+="- three \n";var html=compile(src);document.body.innerHTML=html();
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"micromark": "1.0.0"
}
}
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment