diff --git a/google_checkstyle.xml b/google_checkstyle.xml index a954a98c116..7cd3720b738 100644 --- a/google_checkstyle.xml +++ b/google_checkstyle.xml @@ -133,7 +133,7 @@ - + diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java index dfdcf14e996..2593f85c3ba 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java @@ -191,7 +191,7 @@ public Map postProcessAllModels(Map objs) { for (String name : allModels.keySet()) { CodegenModel cm = allModels.get(name); CodegenModel parent = allModels.get(cm.parent); - // if a discriminator exists on the parent, don't add this child to the inheritance heirarchy + // if a discriminator exists on the parent, don't add this child to the inheritance hierarchy // TODO Determine what to do if the parent discriminator name == the grandparent discriminator name while (parent != null) { if (parent.children == null) { diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SymfonyServerCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SymfonyServerCodegen.java index 8f30fd0f5f0..b5726efc7ff 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SymfonyServerCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SymfonyServerCodegen.java @@ -339,7 +339,7 @@ public Map postProcessOperations(Map objs) { // Loop through all input parameters to determine, whether we have to import something to // make the input type available. for (CodegenParameter param : op.allParams) { - // Determine if the paramter type is supported as a type hint and make it available + // Determine if the parameter type is supported as a type hint and make it available // to the templating engine String typeHint = getTypeHint(param.dataType); if (!typeHint.isEmpty()) { @@ -397,7 +397,7 @@ public Map postProcessModels(Map objs) { // Simplify model var type for (CodegenProperty var : model.vars) { if (var.datatype != null) { - // Determine if the paramter type is supported as a type hint and make it available + // Determine if the parameter type is supported as a type hint and make it available // to the templating engine String typeHint = getTypeHint(var.datatype); if (!typeHint.isEmpty()) { diff --git a/modules/swagger-codegen/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache b/modules/swagger-codegen/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache index dc0027a2488..393d291f05d 100644 --- a/modules/swagger-codegen/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache +++ b/modules/swagger-codegen/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache @@ -10,7 +10,7 @@ note hobbies: LIST [STRING] photos: LIST [PHOTOS] - convertion: + conversion: First go to the feature from_json_to_`model' and then start to set the object attibures as follow. diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallAdapterFactory.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallAdapterFactory.mustache index aa4391a9f1d..be7cac4a0d5 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallAdapterFactory.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallAdapterFactory.mustache @@ -50,7 +50,7 @@ public class Play24CallAdapterFactory extends CallAdapter.Factory { } /** - * Adpater that coverts values returned by API interface into CompletionStage + * Adapter that coverts values returned by API interface into CompletionStage */ private static final class ValueAdapter implements CallAdapter> { diff --git a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallAdapterFactory.mustache b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallAdapterFactory.mustache index e72ee4aa7ab..088c10b160a 100644 --- a/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallAdapterFactory.mustache +++ b/modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallAdapterFactory.mustache @@ -64,7 +64,7 @@ public class Play25CallAdapterFactory extends CallAdapter.Factory { } /** - * Adpater that coverts values returned by API interface into CompletionStage + * Adapter that coverts values returned by API interface into CompletionStage */ private static final class ValueAdapter implements CallAdapter> { diff --git a/modules/swagger-codegen/src/main/resources/JavaPlayFramework/application.mustache b/modules/swagger-codegen/src/main/resources/JavaPlayFramework/application.mustache index 139e83e56cc..e160bb25409 100644 --- a/modules/swagger-codegen/src/main/resources/JavaPlayFramework/application.mustache +++ b/modules/swagger-codegen/src/main/resources/JavaPlayFramework/application.mustache @@ -39,7 +39,7 @@ play.http.errorHandler="swagger.ErrorHandler" # Play uses Akka internally and exposes Akka Streams and actors in Websockets and # other streaming HTTP responses. akka { -# "akka.log-config-on-start" is extraordinarly useful because it log the complete +# "akka.log-config-on-start" is extraordinarily useful because it log the complete # configuration at INFO level, including defaults and overrides, so it s worth # putting at the very top. # diff --git a/modules/swagger-codegen/src/main/resources/MSF4J/Application.mustache b/modules/swagger-codegen/src/main/resources/MSF4J/Application.mustache index 6e6140b79e7..5af60a60580 100644 --- a/modules/swagger-codegen/src/main/resources/MSF4J/Application.mustache +++ b/modules/swagger-codegen/src/main/resources/MSF4J/Application.mustache @@ -12,7 +12,7 @@ public class Application { System.out.println("starting Micro Services"); //Before you run service replace .deploy(new ()) with your actual service class like .deploy(new ApisAPI()) then it will start that service. -//If you have multiple service classes add them in , seperated manner. +//If you have multiple service classes add them in comma separated manner. //Ex: .deploy(new PetApi()) new MicroservicesRunner() .deploy(new PetApi()) diff --git a/modules/swagger-codegen/src/main/resources/bash/client.mustache b/modules/swagger-codegen/src/main/resources/bash/client.mustache index 168c9817add..f284a579471 100644 --- a/modules/swagger-codegen/src/main/resources/bash/client.mustache +++ b/modules/swagger-codegen/src/main/resources/bash/client.mustache @@ -92,16 +92,16 @@ fi declare -a result_color_table=( "$WHITE" "$WHITE" "$GREEN" "$YELLOW" "$WHITE" "$MAGENTA" "$WHITE" ) ## -# This array stores the minimum number of required occurences for parameter +# This array stores the minimum number of required occurrences for parameter # 0 - optional # 1 - required -declare -A operation_parameters_minimum_occurences +declare -A operation_parameters_minimum_occurrences {{#apiInfo}} {{#apis}} {{#operations}} {{#operation}} {{#allParams}} -operation_parameters_minimum_occurences["{{operationId}}:::{{baseName}}"]={{#required}}{{#vendorExtensions}}{{#x-codegen-collection-min-items}}{{x-codegen-collection-min-items}}{{/x-codegen-collection-min-items}}{{^x-codegen-collection-min-items}}1{{/x-codegen-collection-min-items}}{{/vendorExtensions}}{{^vendorExtensions}}1{{/vendorExtensions}}{{/required}}{{^required}}0{{/required}} +operation_parameters_minimum_occurrences["{{operationId}}:::{{baseName}}"]={{#required}}{{#vendorExtensions}}{{#x-codegen-collection-min-items}}{{x-codegen-collection-min-items}}{{/x-codegen-collection-min-items}}{{^x-codegen-collection-min-items}}1{{/x-codegen-collection-min-items}}{{/vendorExtensions}}{{^vendorExtensions}}1{{/vendorExtensions}}{{/required}}{{^required}}0{{/required}} {{/allParams}} {{/operation}} {{/operations}} @@ -109,18 +109,18 @@ operation_parameters_minimum_occurences["{{operationId}}:::{{baseName}}"]={{#req {{/apiInfo}} ## -# This array stores the maximum number of allowed occurences for parameter +# This array stores the maximum number of allowed occurrences for parameter # 1 - single value # 2 - 2 values # N - N values # 0 - unlimited -declare -A operation_parameters_maximum_occurences +declare -A operation_parameters_maximum_occurrences {{#apiInfo}} {{#apis}} {{#operations}} {{#operation}} {{#allParams}} -operation_parameters_maximum_occurences["{{operationId}}:::{{baseName}}"]={{#vendorExtensions}}{{#x-codegen-collection-max-items}}{{x-codegen-collection-max-items}}{{/x-codegen-collection-max-items}}{{^x-codegen-collection-max-items}}0{{/x-codegen-collection-max-items}}{{/vendorExtensions}}{{^vendorExtensions}}0{{/vendorExtensions}} +operation_parameters_maximum_occurrences["{{operationId}}:::{{baseName}}"]={{#vendorExtensions}}{{#x-codegen-collection-max-items}}{{x-codegen-collection-max-items}}{{/x-codegen-collection-max-items}}{{^x-codegen-collection-max-items}}0{{/x-codegen-collection-max-items}}{{/vendorExtensions}}{{^vendorExtensions}}0{{/vendorExtensions}} {{/allParams}} {{/operation}} {{/operations}} @@ -326,7 +326,7 @@ header_arguments_to_curl() { # Converts an associative array into a simple JSON with keys as top # level object attributes # -# \todo Add convertion of more complex attributes using paths +# \todo Add conversion of more complex attributes using paths # ############################################################################## body_parameters_to_json() { @@ -376,7 +376,7 @@ build_request_path() { # - # Check input paramaters count against minimum and maximum required + # Check input parameters count against minimum and maximum required # if [[ "$force" = false ]]; then local was_error="" @@ -387,7 +387,7 @@ build_request_path() { # # Check if the number of provided values is not less than minimum required # - if [[ ${#parameter_values[@]} -lt ${operation_parameters_minimum_occurences["${operation}:::${qparam}"]} ]]; then + if [[ ${#parameter_values[@]} -lt ${operation_parameters_minimum_occurrences["${operation}:::${qparam}"]} ]]; then echo "ERROR: Too few values provided for '${qparam}' parameter." was_error=true fi @@ -395,8 +395,8 @@ build_request_path() { # # Check if the number of provided values is not more than maximum # - if [[ ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} -gt 0 \ - && ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} ]]; then + if [[ ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} -gt 0 \ + && ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} ]]; then echo "ERROR: Too many values provided for '${qparam}' parameter" was_error=true fi @@ -869,7 +869,7 @@ type column >/dev/null 2>&1 || { echo >&2 "ERROR: You do not have 'bsdmainutils' # # Process command line # -# Pass all arguemnts before 'operation' to cURL except the ones we override +# Pass all arguments before 'operation' to cURL except the ones we override # take_user=false take_host=false diff --git a/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache index c0a8a132029..6e2a4aa2583 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache @@ -105,7 +105,7 @@ namespace {{packageName}}.Client /// An instance of the IReadableConfiguration. /// /// helps us to avoid modifying possibly global - /// configuration values from within a given client. It does not gaurantee thread-safety + /// configuration values from within a given client. It does not guarantee thread-safety /// of the instance in any way. /// public IReadableConfiguration Configuration { get; set; } diff --git a/modules/swagger-codegen/src/main/resources/go/README.mustache b/modules/swagger-codegen/src/main/resources/go/README.mustache index edca48eed03..e56e410ff6a 100644 --- a/modules/swagger-codegen/src/main/resources/go/README.mustache +++ b/modules/swagger-codegen/src/main/resources/go/README.mustache @@ -77,7 +77,7 @@ Example r, err := client.Service.Operation(auth, args) ``` -Or via OAuth2 module to automaticly refresh tokens and perform user authentication. +Or via OAuth2 module to automatically refresh tokens and perform user authentication. ``` import "golang.org/x/oauth2" diff --git a/modules/swagger-codegen/src/main/resources/go/api_client.mustache b/modules/swagger-codegen/src/main/resources/go/api_client.mustache index 952ae7b0cf2..c8d6afa8e99 100644 --- a/modules/swagger-codegen/src/main/resources/go/api_client.mustache +++ b/modules/swagger-codegen/src/main/resources/go/api_client.mustache @@ -183,7 +183,7 @@ func (c *APIClient) prepareRequest ( } } - // add form paramters and file if available. + // add form parameters and file if available. if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { if body != nil { return nil, errors.New("Cannot specify postBody and multipart form at the same time.") @@ -223,7 +223,7 @@ func (c *APIClient) prepareRequest ( w.Close() } - // Setup path and query paramters + // Setup path and query parameters url, err := url.Parse(path) if err != nil { return nil, err diff --git a/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache b/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache index 602775d4a3f..e522435f8b3 100644 --- a/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache +++ b/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache @@ -22,7 +22,7 @@ import GHC.Exts (IsString(..)) import qualified Katip as LG --- * Type Aliases (for compatability) +-- * Type Aliases (for compatibility) -- | Runs a Katip logging block with the Log environment type LogExecWithContext = forall m. P.MonadIO m => diff --git a/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache b/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache index dccbaf0252a..7265d7472b2 100644 --- a/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache +++ b/modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache @@ -20,7 +20,7 @@ import Data.Text (Text) import qualified Control.Monad.Logger as LG --- * Type Aliases (for compatability) +-- * Type Aliases (for compatibility) -- | Runs a monad-logger block with the filter predicate type LogExecWithContext = forall m. P.MonadIO m => diff --git a/modules/swagger-codegen/src/main/resources/haskell-http-client/README.mustache b/modules/swagger-codegen/src/main/resources/haskell-http-client/README.mustache index 747f97d3f42..fbfe6a20c45 100644 --- a/modules/swagger-codegen/src/main/resources/haskell-http-client/README.mustache +++ b/modules/swagger-codegen/src/main/resources/haskell-http-client/README.mustache @@ -126,7 +126,7 @@ describes additional constraints and actions on the _addFoo_ operation via its typeclass instances. These typeclass instances can be viewed in GHCi or via the Haddocks. -* requried parameters are included as function arguments to _addFoo_ +* required parameters are included as function arguments to _addFoo_ * optional non-body parameters are included by using `applyOptionalParam` * optional body parameters are set by using `setBodyParam` diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache index cc105bcdcdd..3936dc85149 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache @@ -216,7 +216,7 @@ return /******/ (function(modules) { // webpackBootstrap }); Object.defineProperty(JSONFormatter.prototype, "hasKey", { /* - * did we recieve a key argument? + * did we receive a key argument? * This means that the formatter was called as a sub formatter of a parent formatter */ get: function () { @@ -846,7 +846,7 @@ return /******/ (function(modules) { // webpackBootstrap "use strict"; /* - * Escapes `"` charachters from string + * Escapes `"` characters from string */ function escapeString(str) { return str.replace('"', '\"'); @@ -933,7 +933,7 @@ return /******/ (function(modules) { // webpackBootstrap } exports.cssClass = cssClass; /* - * Creates a new DOM element wiht given type and class + * Creates a new DOM element with given type and class * TODO: move me to helpers */ function createElement(type, className, content) { diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/marked.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/marked.mustache index ce0dec6bfe0..8117cccfb9e 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/marked.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/marked.mustache @@ -4,5 +4,5 @@ * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ -(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(cap[1]==="pre"||cap[1]==="script"||cap[1]==="style"),text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^/i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.text(escape(this.smartypants(cap[0])));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;var out="",l=text.length,i=0,ch;for(;i.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"
"+(escaped?code:escape(code,true))+"\n
"}return'
'+(escaped?code:escape(code,true))+"\n
\n"};Renderer.prototype.blockquote=function(quote){return"
\n"+quote+"
\n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"'+text+"\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"\n"};Renderer.prototype.listitem=function(text){return"
  • "+text+"
  • \n"};Renderer.prototype.paragraph=function(text){return"

    "+text+"

    \n"};Renderer.prototype.table=function(header,body){return"\n"+"\n"+header+"\n"+"\n"+body+"\n"+"
    \n"};Renderer.prototype.tablerow=function(content){return"\n"+content+"\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"\n"};Renderer.prototype.strong=function(text){return""+text+""};Renderer.prototype.em=function(text){return""+text+""};Renderer.prototype.codespan=function(text){return""+text+""};Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "};Renderer.prototype.del=function(text){return""+text+""};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0||prot.indexOf("vbscript:")===0){return""}}var out='
    ";return out};Renderer.prototype.image=function(href,title,text){var out=''+text+'":">";return out};Renderer.prototype.text=function(text){return text};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;iAn error occured:

    "+escape(e.message+"",true)+"
    "}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}()); - \ No newline at end of file +(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(cap[1]==="pre"||cap[1]==="script"||cap[1]==="style"),text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^
    /i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.text(escape(this.smartypants(cap[0])));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;var out="",l=text.length,i=0,ch;for(;i.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"
    "+(escaped?code:escape(code,true))+"\n
    "}return'
    '+(escaped?code:escape(code,true))+"\n
    \n"};Renderer.prototype.blockquote=function(quote){return"
    \n"+quote+"
    \n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"'+text+"\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"\n"};Renderer.prototype.listitem=function(text){return"
  • "+text+"
  • \n"};Renderer.prototype.paragraph=function(text){return"

    "+text+"

    \n"};Renderer.prototype.table=function(header,body){return"\n"+"\n"+header+"\n"+"\n"+body+"\n"+"
    \n"};Renderer.prototype.tablerow=function(content){return"\n"+content+"\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"\n"};Renderer.prototype.strong=function(text){return""+text+""};Renderer.prototype.em=function(text){return""+text+""};Renderer.prototype.codespan=function(text){return""+text+""};Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "};Renderer.prototype.del=function(text){return""+text+""};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0||prot.indexOf("vbscript:")===0){return""}}var out='
    ";return out};Renderer.prototype.image=function(href,title,text){var out=''+text+'":">";return out};Renderer.prototype.text=function(text){return text};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;iAn error occurred:

    "+escape(e.message+"",true)+"
    "}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}()); + diff --git a/modules/swagger-codegen/src/main/resources/lua/README.mustache b/modules/swagger-codegen/src/main/resources/lua/README.mustache index f46349d6357..935e0a9ec48 100644 --- a/modules/swagger-codegen/src/main/resources/lua/README.mustache +++ b/modules/swagger-codegen/src/main/resources/lua/README.mustache @@ -77,7 +77,7 @@ Example r, err := client.Service.Operation(auth, args) ``` -Or via OAuth2 module to automaticly refresh tokens and perform user authentication. +Or via OAuth2 module to automatically refresh tokens and perform user authentication. ``` import "golang.org/x/oauth2" diff --git a/modules/swagger-codegen/src/main/resources/lua/api_client.mustache b/modules/swagger-codegen/src/main/resources/lua/api_client.mustache index 9e88a17d436..de052c56718 100644 --- a/modules/swagger-codegen/src/main/resources/lua/api_client.mustache +++ b/modules/swagger-codegen/src/main/resources/lua/api_client.mustache @@ -183,7 +183,7 @@ func (c *APIClient) prepareRequest ( } } - // add form paramters and file if available. + // add form parameters and file if available. if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { if body != nil { return nil, errors.New("Cannot specify postBody and multipart form at the same time.") @@ -223,7 +223,7 @@ func (c *APIClient) prepareRequest ( w.Close() } - // Setup path and query paramters + // Setup path and query parameters url, err := url.Parse(path) if err != nil { return nil, err diff --git a/modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache b/modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache index c18131cd699..888f46759ac 100644 --- a/modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache +++ b/modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache @@ -55,7 +55,7 @@ extern NSString *const {{classPrefix}}ResponseObjectErrorKey; /** * Updates header parameters and query parameters for authentication * - * @param headers The header parameter will be udpated, passed by pointer to pointer. + * @param headers The header parameter will be updated, passed by pointer to pointer. * @param querys The query parameters will be updated, passed by pointer to pointer. * @param authSettings The authentication names NSArray. */ diff --git a/modules/swagger-codegen/src/main/resources/perl/ApiFactory.mustache b/modules/swagger-codegen/src/main/resources/perl/ApiFactory.mustache index 3b064e4291d..62e1dd13c49 100644 --- a/modules/swagger-codegen/src/main/resources/perl/ApiFactory.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/ApiFactory.mustache @@ -53,11 +53,11 @@ my %_apis = map { $_ =~ /^{{moduleName}}::(.*)$/; $1 => $_ } create a new {{moduleName}}::ApiFactory instance with the given {{moduleName}}::ApiClient instance. -=head1 new(%paramters) +=head1 new(%parameters) Any parameters are optional, and are passed to and stored on the api_client object. - See L<{{moduleName}}::ApiClient> and L<{{moduleName}}::Configuration> for valid paramters + See L<{{moduleName}}::ApiClient> and L<{{moduleName}}::Configuration> for valid parameters =cut diff --git a/modules/swagger-codegen/src/main/resources/perl/Configuration.mustache b/modules/swagger-codegen/src/main/resources/perl/Configuration.mustache index b237cf7961e..69ab0a2c034 100644 --- a/modules/swagger-codegen/src/main/resources/perl/Configuration.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/Configuration.mustache @@ -19,7 +19,7 @@ use constant VERSION => '{{moduleVersion}}'; {{moduleName}}::Configuration - holds the configuration for all {{moduleName}} Modules -=head1 new(%paramters) +=head1 new(%parameters) =over 4 diff --git a/modules/swagger-codegen/src/main/resources/rust/README.mustache b/modules/swagger-codegen/src/main/resources/rust/README.mustache index 67cc0280e2c..3b58ac40715 100644 --- a/modules/swagger-codegen/src/main/resources/rust/README.mustache +++ b/modules/swagger-codegen/src/main/resources/rust/README.mustache @@ -77,7 +77,7 @@ Example r, err := client.Service.Operation(auth, args) ``` -Or via OAuth2 module to automaticly refresh tokens and perform user authentication. +Or via OAuth2 module to automatically refresh tokens and perform user authentication. ``` import "golang.org/x/oauth2" diff --git a/modules/swagger-codegen/src/main/resources/tizen/Doxyfile.mustache b/modules/swagger-codegen/src/main/resources/tizen/Doxyfile.mustache index af114f74cdb..b3bc8c943ec 100644 --- a/modules/swagger-codegen/src/main/resources/tizen/Doxyfile.mustache +++ b/modules/swagger-codegen/src/main/resources/tizen/Doxyfile.mustache @@ -1957,7 +1957,7 @@ PREDEFINED = EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will -# remove all refrences to function-like macros that are alone on a line, have an +# remove all references to function-like macros that are alone on a line, have an # all uppercase name, and do not end with a semicolon. Such function macros are # typically used for boiler-plate code, and will confuse the parser if not # removed. diff --git a/modules/swagger-codegen/src/main/resources/tizen/api-body.mustache b/modules/swagger-codegen/src/main/resources/tizen/api-body.mustache index 57fd894dd6f..be351f437a6 100644 --- a/modules/swagger-codegen/src/main/resources/tizen/api-body.mustache +++ b/modules/swagger-codegen/src/main/resources/tizen/api-body.mustache @@ -124,7 +124,7 @@ static bool {{nickname}}Processor(MemoryStruct_s p_chunk, long code, char* error } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } {{#returnType}} handler(out, error, userData); return false; diff --git a/modules/swagger-codegen/src/test/resources/2_0/markdown.yaml b/modules/swagger-codegen/src/test/resources/2_0/markdown.yaml index efb852f4036..2edf63a9bd5 100644 --- a/modules/swagger-codegen/src/test/resources/2_0/markdown.yaml +++ b/modules/swagger-codegen/src/test/resources/2_0/markdown.yaml @@ -50,7 +50,7 @@ paths: type: string responses: '200': - description: Operation *succeded* + description: Operation *succeeded* schema: $ref: '#/definitions/RandomNumber' '404': diff --git a/modules/swagger-codegen/src/test/resources/2_0/petstore-bash.json b/modules/swagger-codegen/src/test/resources/2_0/petstore-bash.json index 7454660f8ba..2db85aae924 100644 --- a/modules/swagger-codegen/src/test/resources/2_0/petstore-bash.json +++ b/modules/swagger-codegen/src/test/resources/2_0/petstore-bash.json @@ -197,7 +197,7 @@ "pet" ], "summary":"Finds Pets by tags", - "description":"Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", + "description":"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", "operationId":"findPetsByTags", "produces":[ "application/xml", diff --git a/samples/client/petstore/bash/petstore-cli b/samples/client/petstore/bash/petstore-cli index f47056aa43d..39345ec1a4f 100755 --- a/samples/client/petstore/bash/petstore-cli +++ b/samples/client/petstore/bash/petstore-cli @@ -91,130 +91,132 @@ fi declare -a result_color_table=( "$WHITE" "$WHITE" "$GREEN" "$YELLOW" "$WHITE" "$MAGENTA" "$WHITE" ) ## -# This array stores the minimum number of required occurences for parameter +# This array stores the minimum number of required occurrences for parameter # 0 - optional # 1 - required -declare -A operation_parameters_minimum_occurences -operation_parameters_minimum_occurences["testSpecialTags:::body"]=1 -operation_parameters_minimum_occurences["fakeOuterBooleanSerialize:::body"]=0 -operation_parameters_minimum_occurences["fakeOuterCompositeSerialize:::body"]=0 -operation_parameters_minimum_occurences["fakeOuterNumberSerialize:::body"]=0 -operation_parameters_minimum_occurences["fakeOuterStringSerialize:::body"]=0 -operation_parameters_minimum_occurences["testClientModel:::body"]=1 -operation_parameters_minimum_occurences["testEndpointParameters:::number"]=1 -operation_parameters_minimum_occurences["testEndpointParameters:::double"]=1 -operation_parameters_minimum_occurences["testEndpointParameters:::pattern_without_delimiter"]=1 -operation_parameters_minimum_occurences["testEndpointParameters:::byte"]=1 -operation_parameters_minimum_occurences["testEndpointParameters:::integer"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::int32"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::int64"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::float"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::string"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::binary"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::date"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::dateTime"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::password"]=0 -operation_parameters_minimum_occurences["testEndpointParameters:::callback"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_form_string_array"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_form_string"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_header_string_array"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_header_string"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_query_string_array"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_query_string"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_query_integer"]=0 -operation_parameters_minimum_occurences["testEnumParameters:::enum_query_double"]=0 -operation_parameters_minimum_occurences["testJsonFormData:::param"]=1 -operation_parameters_minimum_occurences["testJsonFormData:::param2"]=1 -operation_parameters_minimum_occurences["testClassname:::body"]=1 -operation_parameters_minimum_occurences["addPet:::body"]=1 -operation_parameters_minimum_occurences["deletePet:::petId"]=1 -operation_parameters_minimum_occurences["deletePet:::api_key"]=0 -operation_parameters_minimum_occurences["findPetsByStatus:::status"]=1 -operation_parameters_minimum_occurences["findPetsByTags:::tags"]=1 -operation_parameters_minimum_occurences["getPetById:::petId"]=1 -operation_parameters_minimum_occurences["updatePet:::body"]=1 -operation_parameters_minimum_occurences["updatePetWithForm:::petId"]=1 -operation_parameters_minimum_occurences["updatePetWithForm:::name"]=0 -operation_parameters_minimum_occurences["updatePetWithForm:::status"]=0 -operation_parameters_minimum_occurences["uploadFile:::petId"]=1 -operation_parameters_minimum_occurences["uploadFile:::additionalMetadata"]=0 -operation_parameters_minimum_occurences["uploadFile:::file"]=0 -operation_parameters_minimum_occurences["deleteOrder:::order_id"]=1 -operation_parameters_minimum_occurences["getOrderById:::order_id"]=1 -operation_parameters_minimum_occurences["placeOrder:::body"]=1 -operation_parameters_minimum_occurences["createUser:::body"]=1 -operation_parameters_minimum_occurences["createUsersWithArrayInput:::body"]=1 -operation_parameters_minimum_occurences["createUsersWithListInput:::body"]=1 -operation_parameters_minimum_occurences["deleteUser:::username"]=1 -operation_parameters_minimum_occurences["getUserByName:::username"]=1 -operation_parameters_minimum_occurences["loginUser:::username"]=1 -operation_parameters_minimum_occurences["loginUser:::password"]=1 -operation_parameters_minimum_occurences["updateUser:::username"]=1 -operation_parameters_minimum_occurences["updateUser:::body"]=1 +declare -A operation_parameters_minimum_occurrences +operation_parameters_minimum_occurrences["testSpecialTags:::body"]=1 +operation_parameters_minimum_occurrences["fakeOuterBooleanSerialize:::body"]=0 +operation_parameters_minimum_occurrences["fakeOuterCompositeSerialize:::body"]=0 +operation_parameters_minimum_occurrences["fakeOuterNumberSerialize:::body"]=0 +operation_parameters_minimum_occurrences["fakeOuterStringSerialize:::body"]=0 +operation_parameters_minimum_occurrences["testClientModel:::body"]=1 +operation_parameters_minimum_occurrences["testEndpointParameters:::number"]=1 +operation_parameters_minimum_occurrences["testEndpointParameters:::double"]=1 +operation_parameters_minimum_occurrences["testEndpointParameters:::pattern_without_delimiter"]=1 +operation_parameters_minimum_occurrences["testEndpointParameters:::byte"]=1 +operation_parameters_minimum_occurrences["testEndpointParameters:::integer"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::int32"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::int64"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::float"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::string"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::binary"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::date"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::dateTime"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::password"]=0 +operation_parameters_minimum_occurrences["testEndpointParameters:::callback"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_form_string_array"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_form_string"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_header_string_array"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_header_string"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_query_string_array"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_query_string"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_query_integer"]=0 +operation_parameters_minimum_occurrences["testEnumParameters:::enum_query_double"]=0 +operation_parameters_minimum_occurrences["testInlineAdditionalProperties:::param"]=1 +operation_parameters_minimum_occurrences["testJsonFormData:::param"]=1 +operation_parameters_minimum_occurrences["testJsonFormData:::param2"]=1 +operation_parameters_minimum_occurrences["testClassname:::body"]=1 +operation_parameters_minimum_occurrences["addPet:::body"]=1 +operation_parameters_minimum_occurrences["deletePet:::petId"]=1 +operation_parameters_minimum_occurrences["deletePet:::api_key"]=0 +operation_parameters_minimum_occurrences["findPetsByStatus:::status"]=1 +operation_parameters_minimum_occurrences["findPetsByTags:::tags"]=1 +operation_parameters_minimum_occurrences["getPetById:::petId"]=1 +operation_parameters_minimum_occurrences["updatePet:::body"]=1 +operation_parameters_minimum_occurrences["updatePetWithForm:::petId"]=1 +operation_parameters_minimum_occurrences["updatePetWithForm:::name"]=0 +operation_parameters_minimum_occurrences["updatePetWithForm:::status"]=0 +operation_parameters_minimum_occurrences["uploadFile:::petId"]=1 +operation_parameters_minimum_occurrences["uploadFile:::additionalMetadata"]=0 +operation_parameters_minimum_occurrences["uploadFile:::file"]=0 +operation_parameters_minimum_occurrences["deleteOrder:::order_id"]=1 +operation_parameters_minimum_occurrences["getOrderById:::order_id"]=1 +operation_parameters_minimum_occurrences["placeOrder:::body"]=1 +operation_parameters_minimum_occurrences["createUser:::body"]=1 +operation_parameters_minimum_occurrences["createUsersWithArrayInput:::body"]=1 +operation_parameters_minimum_occurrences["createUsersWithListInput:::body"]=1 +operation_parameters_minimum_occurrences["deleteUser:::username"]=1 +operation_parameters_minimum_occurrences["getUserByName:::username"]=1 +operation_parameters_minimum_occurrences["loginUser:::username"]=1 +operation_parameters_minimum_occurrences["loginUser:::password"]=1 +operation_parameters_minimum_occurrences["updateUser:::username"]=1 +operation_parameters_minimum_occurrences["updateUser:::body"]=1 ## -# This array stores the maximum number of allowed occurences for parameter +# This array stores the maximum number of allowed occurrences for parameter # 1 - single value # 2 - 2 values # N - N values # 0 - unlimited -declare -A operation_parameters_maximum_occurences -operation_parameters_maximum_occurences["testSpecialTags:::body"]=0 -operation_parameters_maximum_occurences["fakeOuterBooleanSerialize:::body"]=0 -operation_parameters_maximum_occurences["fakeOuterCompositeSerialize:::body"]=0 -operation_parameters_maximum_occurences["fakeOuterNumberSerialize:::body"]=0 -operation_parameters_maximum_occurences["fakeOuterStringSerialize:::body"]=0 -operation_parameters_maximum_occurences["testClientModel:::body"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::number"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::double"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::pattern_without_delimiter"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::byte"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::integer"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::int32"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::int64"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::float"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::string"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::binary"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::date"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::dateTime"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::password"]=0 -operation_parameters_maximum_occurences["testEndpointParameters:::callback"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_form_string_array"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_form_string"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_header_string_array"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_header_string"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_query_string_array"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_query_string"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_query_integer"]=0 -operation_parameters_maximum_occurences["testEnumParameters:::enum_query_double"]=0 -operation_parameters_maximum_occurences["testJsonFormData:::param"]=0 -operation_parameters_maximum_occurences["testJsonFormData:::param2"]=0 -operation_parameters_maximum_occurences["testClassname:::body"]=0 -operation_parameters_maximum_occurences["addPet:::body"]=0 -operation_parameters_maximum_occurences["deletePet:::petId"]=0 -operation_parameters_maximum_occurences["deletePet:::api_key"]=0 -operation_parameters_maximum_occurences["findPetsByStatus:::status"]=0 -operation_parameters_maximum_occurences["findPetsByTags:::tags"]=0 -operation_parameters_maximum_occurences["getPetById:::petId"]=0 -operation_parameters_maximum_occurences["updatePet:::body"]=0 -operation_parameters_maximum_occurences["updatePetWithForm:::petId"]=0 -operation_parameters_maximum_occurences["updatePetWithForm:::name"]=0 -operation_parameters_maximum_occurences["updatePetWithForm:::status"]=0 -operation_parameters_maximum_occurences["uploadFile:::petId"]=0 -operation_parameters_maximum_occurences["uploadFile:::additionalMetadata"]=0 -operation_parameters_maximum_occurences["uploadFile:::file"]=0 -operation_parameters_maximum_occurences["deleteOrder:::order_id"]=0 -operation_parameters_maximum_occurences["getOrderById:::order_id"]=0 -operation_parameters_maximum_occurences["placeOrder:::body"]=0 -operation_parameters_maximum_occurences["createUser:::body"]=0 -operation_parameters_maximum_occurences["createUsersWithArrayInput:::body"]=0 -operation_parameters_maximum_occurences["createUsersWithListInput:::body"]=0 -operation_parameters_maximum_occurences["deleteUser:::username"]=0 -operation_parameters_maximum_occurences["getUserByName:::username"]=0 -operation_parameters_maximum_occurences["loginUser:::username"]=0 -operation_parameters_maximum_occurences["loginUser:::password"]=0 -operation_parameters_maximum_occurences["updateUser:::username"]=0 -operation_parameters_maximum_occurences["updateUser:::body"]=0 +declare -A operation_parameters_maximum_occurrences +operation_parameters_maximum_occurrences["testSpecialTags:::body"]=0 +operation_parameters_maximum_occurrences["fakeOuterBooleanSerialize:::body"]=0 +operation_parameters_maximum_occurrences["fakeOuterCompositeSerialize:::body"]=0 +operation_parameters_maximum_occurrences["fakeOuterNumberSerialize:::body"]=0 +operation_parameters_maximum_occurrences["fakeOuterStringSerialize:::body"]=0 +operation_parameters_maximum_occurrences["testClientModel:::body"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::number"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::double"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::pattern_without_delimiter"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::byte"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::integer"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::int32"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::int64"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::float"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::string"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::binary"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::date"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::dateTime"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::password"]=0 +operation_parameters_maximum_occurrences["testEndpointParameters:::callback"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_form_string_array"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_form_string"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_header_string_array"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_header_string"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_query_string_array"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_query_string"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_query_integer"]=0 +operation_parameters_maximum_occurrences["testEnumParameters:::enum_query_double"]=0 +operation_parameters_maximum_occurrences["testInlineAdditionalProperties:::param"]=0 +operation_parameters_maximum_occurrences["testJsonFormData:::param"]=0 +operation_parameters_maximum_occurrences["testJsonFormData:::param2"]=0 +operation_parameters_maximum_occurrences["testClassname:::body"]=0 +operation_parameters_maximum_occurrences["addPet:::body"]=0 +operation_parameters_maximum_occurrences["deletePet:::petId"]=0 +operation_parameters_maximum_occurrences["deletePet:::api_key"]=0 +operation_parameters_maximum_occurrences["findPetsByStatus:::status"]=0 +operation_parameters_maximum_occurrences["findPetsByTags:::tags"]=0 +operation_parameters_maximum_occurrences["getPetById:::petId"]=0 +operation_parameters_maximum_occurrences["updatePet:::body"]=0 +operation_parameters_maximum_occurrences["updatePetWithForm:::petId"]=0 +operation_parameters_maximum_occurrences["updatePetWithForm:::name"]=0 +operation_parameters_maximum_occurrences["updatePetWithForm:::status"]=0 +operation_parameters_maximum_occurrences["uploadFile:::petId"]=0 +operation_parameters_maximum_occurrences["uploadFile:::additionalMetadata"]=0 +operation_parameters_maximum_occurrences["uploadFile:::file"]=0 +operation_parameters_maximum_occurrences["deleteOrder:::order_id"]=0 +operation_parameters_maximum_occurrences["getOrderById:::order_id"]=0 +operation_parameters_maximum_occurrences["placeOrder:::body"]=0 +operation_parameters_maximum_occurrences["createUser:::body"]=0 +operation_parameters_maximum_occurrences["createUsersWithArrayInput:::body"]=0 +operation_parameters_maximum_occurrences["createUsersWithListInput:::body"]=0 +operation_parameters_maximum_occurrences["deleteUser:::username"]=0 +operation_parameters_maximum_occurrences["getUserByName:::username"]=0 +operation_parameters_maximum_occurrences["loginUser:::username"]=0 +operation_parameters_maximum_occurrences["loginUser:::password"]=0 +operation_parameters_maximum_occurrences["updateUser:::username"]=0 +operation_parameters_maximum_occurrences["updateUser:::body"]=0 ## # The type of collection for specifying multiple values for parameter: @@ -428,7 +430,7 @@ header_arguments_to_curl() { # Converts an associative array into a simple JSON with keys as top # level object attributes # -# \todo Add convertion of more complex attributes using paths +# \todo Add conversion of more complex attributes using paths # ############################################################################## body_parameters_to_json() { @@ -478,7 +480,7 @@ build_request_path() { # - # Check input paramaters count against minimum and maximum required + # Check input parameters count against minimum and maximum required # if [[ "$force" = false ]]; then local was_error="" @@ -489,7 +491,7 @@ build_request_path() { # # Check if the number of provided values is not less than minimum required # - if [[ ${#parameter_values[@]} -lt ${operation_parameters_minimum_occurences["${operation}:::${qparam}"]} ]]; then + if [[ ${#parameter_values[@]} -lt ${operation_parameters_minimum_occurrences["${operation}:::${qparam}"]} ]]; then echo "ERROR: Too few values provided for '${qparam}' parameter." was_error=true fi @@ -497,8 +499,8 @@ build_request_path() { # # Check if the number of provided values is not more than maximum # - if [[ ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} -gt 0 \ - && ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} ]]; then + if [[ ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} -gt 0 \ + && ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} ]]; then echo "ERROR: Too many values provided for '${qparam}' parameter" was_error=true fi @@ -2994,7 +2996,7 @@ type column >/dev/null 2>&1 || { echo >&2 "ERROR: You do not have 'bsdmainutils' # # Process command line # -# Pass all arguemnts before 'operation' to cURL except the ones we override +# Pass all arguments before 'operation' to cURL except the ones we override # take_user=false take_host=false diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs index da0d7101975..61b2426ac70 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs @@ -95,7 +95,7 @@ public ApiClient(String basePath = "http://petstore.swagger.io:80/v2") /// An instance of the IReadableConfiguration. /// /// helps us to avoid modifying possibly global - /// configuration values from within a given client. It does not gaurantee thread-safety + /// configuration values from within a given client. It does not guarantee thread-safety /// of the instance in any way. /// public IReadableConfiguration Configuration { get; set; } diff --git a/samples/client/petstore/go/go-petstore/README.md b/samples/client/petstore/go/go-petstore/README.md index 48f362a6466..7f58f0ccd5e 100644 --- a/samples/client/petstore/go/go-petstore/README.md +++ b/samples/client/petstore/go/go-petstore/README.md @@ -143,7 +143,7 @@ Example r, err := client.Service.Operation(auth, args) ``` -Or via OAuth2 module to automaticly refresh tokens and perform user authentication. +Or via OAuth2 module to automatically refresh tokens and perform user authentication. ``` import "golang.org/x/oauth2" diff --git a/samples/client/petstore/go/go-petstore/api_client.go b/samples/client/petstore/go/go-petstore/api_client.go index 686b109b819..3c0ed8e3d52 100644 --- a/samples/client/petstore/go/go-petstore/api_client.go +++ b/samples/client/petstore/go/go-petstore/api_client.go @@ -190,7 +190,7 @@ func (c *APIClient) prepareRequest ( } } - // add form paramters and file if available. + // add form parameters and file if available. if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { if body != nil { return nil, errors.New("Cannot specify postBody and multipart form at the same time.") @@ -230,7 +230,7 @@ func (c *APIClient) prepareRequest ( w.Close() } - // Setup path and query paramters + // Setup path and query parameters url, err := url.Parse(path) if err != nil { return nil, err diff --git a/samples/client/petstore/haskell-http-client/README.md b/samples/client/petstore/haskell-http-client/README.md index e42023ce834..7664d49eab7 100644 --- a/samples/client/petstore/haskell-http-client/README.md +++ b/samples/client/petstore/haskell-http-client/README.md @@ -126,7 +126,7 @@ describes additional constraints and actions on the _addFoo_ operation via its typeclass instances. These typeclass instances can be viewed in GHCi or via the Haddocks. -* requried parameters are included as function arguments to _addFoo_ +* required parameters are included as function arguments to _addFoo_ * optional non-body parameters are included by using `applyOptionalParam` * optional body parameters are set by using `setBodyParam` diff --git a/samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Logging.hs b/samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Logging.hs index 0b65fd3c406..aaf726f0750 100644 --- a/samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Logging.hs +++ b/samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Logging.hs @@ -32,7 +32,7 @@ import GHC.Exts (IsString(..)) import qualified Katip as LG --- * Type Aliases (for compatability) +-- * Type Aliases (for compatibility) -- | Runs a Katip logging block with the Log environment type LogExecWithContext = forall m. P.MonadIO m => diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallAdapterFactory.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallAdapterFactory.java index 6883c237140..0ee38e9d5df 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallAdapterFactory.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallAdapterFactory.java @@ -50,7 +50,7 @@ private CallAdapter> createAdapter(ParameterizedType returnType) } /** - * Adpater that coverts values returned by API interface into CompletionStage + * Adapter that coverts values returned by API interface into CompletionStage */ private static final class ValueAdapter implements CallAdapter> { diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallAdapterFactory.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallAdapterFactory.java index 3f64cea1b74..a952d89bb5f 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallAdapterFactory.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallAdapterFactory.java @@ -64,7 +64,7 @@ private CallAdapter> createAdapter(ParameterizedType retur } /** - * Adpater that coverts values returned by API interface into CompletionStage + * Adapter that coverts values returned by API interface into CompletionStage */ private static final class ValueAdapter implements CallAdapter> { diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h index 099fb88c335..4d219d8131c 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h @@ -66,7 +66,7 @@ extern NSString *const SWGResponseObjectErrorKey; /** * Updates header parameters and query parameters for authentication * - * @param headers The header parameter will be udpated, passed by pointer to pointer. + * @param headers The header parameter will be updated, passed by pointer to pointer. * @param querys The query parameters will be updated, passed by pointer to pointer. * @param authSettings The authentication names NSArray. */ diff --git a/samples/client/petstore/perl/lib/WWW/SwaggerClient/ApiFactory.pm b/samples/client/petstore/perl/lib/WWW/SwaggerClient/ApiFactory.pm index 7688260ece3..9ce1b6af3f5 100644 --- a/samples/client/petstore/perl/lib/WWW/SwaggerClient/ApiFactory.pm +++ b/samples/client/petstore/perl/lib/WWW/SwaggerClient/ApiFactory.pm @@ -66,11 +66,11 @@ my %_apis = map { $_ =~ /^WWW::SwaggerClient::(.*)$/; $1 => $_ } create a new WWW::SwaggerClient::ApiFactory instance with the given WWW::SwaggerClient::ApiClient instance. -=head1 new(%paramters) +=head1 new(%parameters) Any parameters are optional, and are passed to and stored on the api_client object. - See L and L for valid paramters + See L and L for valid parameters =cut diff --git a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Configuration.pm b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Configuration.pm index 903b1cb4571..60889be929c 100644 --- a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Configuration.pm +++ b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Configuration.pm @@ -32,7 +32,7 @@ use constant VERSION => '1.0.0'; WWW::SwaggerClient::Configuration - holds the configuration for all WWW::SwaggerClient Modules -=head1 new(%paramters) +=head1 new(%parameters) =over 4 diff --git a/samples/client/petstore/rust/README.md b/samples/client/petstore/rust/README.md index 248d02349b6..d0801d6f9ee 100644 --- a/samples/client/petstore/rust/README.md +++ b/samples/client/petstore/rust/README.md @@ -80,7 +80,7 @@ Example r, err := client.Service.Operation(auth, args) ``` -Or via OAuth2 module to automaticly refresh tokens and perform user authentication. +Or via OAuth2 module to automatically refresh tokens and perform user authentication. ``` import "golang.org/x/oauth2" diff --git a/samples/client/petstore/rust/git_push.sh b/samples/client/petstore/rust/git_push.sh index ed374619b13..ae01b182ae9 100644 --- a/samples/client/petstore/rust/git_push.sh +++ b/samples/client/petstore/rust/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/samples/client/petstore/tizen/doc/Doxyfile b/samples/client/petstore/tizen/doc/Doxyfile index 853d5442178..a6a948a43dc 100644 --- a/samples/client/petstore/tizen/doc/Doxyfile +++ b/samples/client/petstore/tizen/doc/Doxyfile @@ -1957,7 +1957,7 @@ PREDEFINED = EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will -# remove all refrences to function-like macros that are alone on a line, have an +# remove all references to function-like macros that are alone on a line, have an # all uppercase name, and do not end with a semicolon. Such function macros are # typically used for boiler-plate code, and will confuse the parser if not # removed. diff --git a/samples/client/petstore/tizen/src/PetManager.cpp b/samples/client/petstore/tizen/src/PetManager.cpp index 809e736a145..2f273a21e10 100644 --- a/samples/client/petstore/tizen/src/PetManager.cpp +++ b/samples/client/petstore/tizen/src/PetManager.cpp @@ -74,7 +74,7 @@ static bool addPetProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, v } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -212,7 +212,7 @@ static bool deletePetProcessor(MemoryStruct_s p_chunk, long code, char* errormsg } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -362,7 +362,7 @@ static bool findPetsByStatusProcessor(MemoryStruct_s p_chunk, long code, char* e } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -506,7 +506,7 @@ static bool findPetsByTagsProcessor(MemoryStruct_s p_chunk, long code, char* err } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -658,7 +658,7 @@ static bool getPetByIdProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -788,7 +788,7 @@ static bool updatePetProcessor(MemoryStruct_s p_chunk, long code, char* errormsg } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -926,7 +926,7 @@ static bool updatePetWithFormProcessor(MemoryStruct_s p_chunk, long code, char* } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -1078,7 +1078,7 @@ static bool uploadFileProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; diff --git a/samples/client/petstore/tizen/src/StoreManager.cpp b/samples/client/petstore/tizen/src/StoreManager.cpp index 8721032e57f..e107ff84434 100644 --- a/samples/client/petstore/tizen/src/StoreManager.cpp +++ b/samples/client/petstore/tizen/src/StoreManager.cpp @@ -74,7 +74,7 @@ static bool deleteOrderProcessor(MemoryStruct_s p_chunk, long code, char* errorm } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -204,7 +204,7 @@ static bool getInventoryProcessor(MemoryStruct_s p_chunk, long code, char* error } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -350,7 +350,7 @@ static bool getOrderByIdProcessor(MemoryStruct_s p_chunk, long code, char* error } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -502,7 +502,7 @@ static bool placeOrderProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; diff --git a/samples/client/petstore/tizen/src/UserManager.cpp b/samples/client/petstore/tizen/src/UserManager.cpp index b87911169b7..ab3a7e40964 100644 --- a/samples/client/petstore/tizen/src/UserManager.cpp +++ b/samples/client/petstore/tizen/src/UserManager.cpp @@ -74,7 +74,7 @@ static bool createUserProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -211,7 +211,7 @@ static bool createUsersWithArrayInputProcessor(MemoryStruct_s p_chunk, long code } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -360,7 +360,7 @@ static bool createUsersWithListInputProcessor(MemoryStruct_s p_chunk, long code, } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -509,7 +509,7 @@ static bool deleteUserProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -661,7 +661,7 @@ static bool getUserByNameProcessor(MemoryStruct_s p_chunk, long code, char* erro } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -808,7 +808,7 @@ static bool loginUserProcessor(MemoryStruct_s p_chunk, long code, char* errormsg } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(out, error, userData); return false; @@ -940,7 +940,7 @@ static bool logoutUserProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; @@ -1064,7 +1064,7 @@ static bool updateUserProcessor(MemoryStruct_s p_chunk, long code, char* errorms } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { - error = Error(code, string("Unkown Error")); + error = Error(code, string("Unknown Error")); } handler(error, userData); return false; diff --git a/samples/html.md/index.html b/samples/html.md/index.html index 28cbed90cc3..843f8c7112d 100644 --- a/samples/html.md/index.html +++ b/samples/html.md/index.html @@ -249,7 +249,7 @@

    Example data

    Responses

    200

    - Operation succeded + Operation succeeded
    RandomNumber

    404

    Invalid or omitted seed. Seeds must be valid numbers. diff --git a/samples/html2/index.html b/samples/html2/index.html index baaedea8721..bcb9e0a1e99 100644 --- a/samples/html2/index.html +++ b/samples/html2/index.html @@ -61,7 +61,7 @@ * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ -(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(cap[1]==="pre"||cap[1]==="script"||cap[1]==="style"),text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^/i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.text(escape(this.smartypants(cap[0])));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;var out="",l=text.length,i=0,ch;for(;i.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"
    "+(escaped?code:escape(code,true))+"\n
    "}return'
    '+(escaped?code:escape(code,true))+"\n
    \n"};Renderer.prototype.blockquote=function(quote){return"
    \n"+quote+"
    \n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"'+text+"\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"\n"};Renderer.prototype.listitem=function(text){return"
  • "+text+"
  • \n"};Renderer.prototype.paragraph=function(text){return"

    "+text+"

    \n"};Renderer.prototype.table=function(header,body){return"\n"+"\n"+header+"\n"+"\n"+body+"\n"+"
    \n"};Renderer.prototype.tablerow=function(content){return"\n"+content+"\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"\n"};Renderer.prototype.strong=function(text){return""+text+""};Renderer.prototype.em=function(text){return""+text+""};Renderer.prototype.codespan=function(text){return""+text+""};Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "};Renderer.prototype.del=function(text){return""+text+""};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0||prot.indexOf("vbscript:")===0){return""}}var out='
    ";return out};Renderer.prototype.image=function(href,title,text){var out=''+text+'":">";return out};Renderer.prototype.text=function(text){return text};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;iAn error occured:

    "+escape(e.message+"",true)+"
    "}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}()); +(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(cap[1]==="pre"||cap[1]==="script"||cap[1]==="style"),text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^
    /i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.text(escape(this.smartypants(cap[0])));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;var out="",l=text.length,i=0,ch;for(;i.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"
    "+(escaped?code:escape(code,true))+"\n
    "}return'
    '+(escaped?code:escape(code,true))+"\n
    \n"};Renderer.prototype.blockquote=function(quote){return"
    \n"+quote+"
    \n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"'+text+"\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"\n"};Renderer.prototype.listitem=function(text){return"
  • "+text+"
  • \n"};Renderer.prototype.paragraph=function(text){return"

    "+text+"

    \n"};Renderer.prototype.table=function(header,body){return"\n"+"\n"+header+"\n"+"\n"+body+"\n"+"
    \n"};Renderer.prototype.tablerow=function(content){return"\n"+content+"\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"\n"};Renderer.prototype.strong=function(text){return""+text+""};Renderer.prototype.em=function(text){return""+text+""};Renderer.prototype.codespan=function(text){return""+text+""};Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "};Renderer.prototype.del=function(text){return""+text+""};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0||prot.indexOf("vbscript:")===0){return""}}var out='
    ";return out};Renderer.prototype.image=function(href,title,text){var out=''+text+'":">";return out};Renderer.prototype.text=function(text){return text};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;iAn error occurred:

    "+escape(e.message+"",true)+"
    "}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}());