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

ep_markdown

Package Overview
Dependencies
Maintainers
5
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_markdown - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

22

exportMarkdown.js

@@ -84,3 +84,3 @@ /**

var headingtags = ['# ', '## ', '### ', '#### ', '##### ', '###### ', '```'];
var headingtags = ['# ', '## ', '### ', '#### ', '##### ', '###### ', '``'];
var headingprops = [['heading', 'h1'], ['heading', 'h2'], ['heading', 'h3'], ['heading', 'h4'], ['heading', 'h5'], ['heading', 'h6'], ['heading', 'code']];

@@ -171,3 +171,3 @@ var headinganumMap = {};

if (heading) {
if(heading === "```"){
if(heading === "``"){
isCode = true;

@@ -286,5 +286,5 @@ }else{

}
var s = taker.take(chars);
//removes the characters with the code 12. Don't know where they come

@@ -299,6 +299,6 @@ //from but they break the abiword parser and are completly useless

}
assem.append(s);
} // end iteration over spans in line
var tags2close = [];

@@ -313,3 +313,3 @@ for (var i = propVals.length - 1; i >= 0; i--)

}
orderdCloseTags(tags2close);

@@ -335,3 +335,3 @@ } // end processNextChars

if (isCode) {
assem.append('```');
assem.append('``');
}

@@ -360,3 +360,3 @@

var lineContent = getLineMarkdown(line.text, line.aline);
if (line.listLevel)//If we are inside a list

@@ -382,3 +382,3 @@ {

}
if(line.listTypeName == "number"){

@@ -392,3 +392,3 @@ pieces.push("\n"+(new Array(line.listLevel*4)).join(' ')+"1. ", lineContent || "\n"); // problem here

{
pieces.push(lineContent, "\n");
pieces.push("\n", lineContent, "\n");
}

@@ -395,0 +395,0 @@

{
"name": "ep_markdown",
"description": "Edit and Export as Markdown in Etherpad",
"version": "0.1.4",
"version": "0.1.5",
"author": {

@@ -6,0 +6,0 @@ "name": "John McLear",

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