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.2 to 3.0.3

13

lib/parser.js

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

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