ecmarkdown
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -124,6 +124,3 @@ 'use strict'; | ||
} else if (isFormatToken(tok)) { | ||
if (fmtStack.indexOf(tok.name) === -1) { | ||
const node = this.parseFormat(tok.name, inList, fmtStack); | ||
seg = seg.concat(node); | ||
} else { | ||
if (fmtStack.indexOf(tok.name) > -1) { // only one format | ||
// this format token closes a format on the stack so ends this fragment | ||
@@ -133,2 +130,10 @@ // parseText handles checking for whether the close format was contextually | ||
break; | ||
} else if (fmtStack.length === 0) { | ||
// valid format | ||
const node = this.parseFormat(tok.name, inList, fmtStack); | ||
seg = seg.concat(node); | ||
} else { | ||
// invalid format | ||
pushOrJoin(seg, { name: 'text', contents: tok.contents }); | ||
this._t.next(); | ||
} | ||
@@ -135,0 +140,0 @@ } else if (tok.name === 'comment' || tok.name === 'tag') { |
{ | ||
"name": "ecmarkdown", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "A compiler for \"Ecmarkdown\" algorithm shorthand into HTML.", | ||
@@ -5,0 +5,0 @@ "main": "lib/ecmarkdown.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25351
569