Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ecmarkdown

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecmarkdown - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

3

lib/emitter.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc