ecmarkdown
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -31,4 +31,3 @@ 'use strict'; | ||
} else if (node.name === 'text') { | ||
// trim any trailing line breaks and indents | ||
str += node.contents.replace(/\n+\s*$/, ''); | ||
str += node.contents; | ||
} else if (node.name === 'pipe') { | ||
@@ -35,0 +34,0 @@ str += '<emu-nt'; |
@@ -148,3 +148,3 @@ 'use strict'; | ||
} else if (isList(tok)) { | ||
if (inList && this._t.previous.name === 'linebreak') { | ||
if (inList) { | ||
break; | ||
@@ -172,2 +172,11 @@ } else { | ||
if (tok.name === 'linebreak') { | ||
const next = this._t.peek(2); | ||
// consume linebreaks trailing list items and before EOF | ||
if (next.name === 'EOF' || (inList && isList(next))) { | ||
this._t.next(); | ||
break; | ||
} | ||
} | ||
if (tok.name === 'text' || isWhitespace(tok)) { | ||
@@ -174,0 +183,0 @@ node.contents += tok.contents; |
{ | ||
"name": "ecmarkdown", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"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
25782
583