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

ep_citation

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_citation - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.travis.yml

17

index.js

@@ -35,4 +35,4 @@ var eejs = require('ep_etherpad-lite/node/eejs/');

// line, apool,attribLine,text
exports.getLineHTMLForExport = function (hook, line) {
var contextV = _analyzeLine(line.attribLine, line.apool);
exports.getLineHTMLForExport = function (hook, context) {
var contextV = _analyzeLine(context.attribLine, context.apool);

@@ -43,3 +43,4 @@ // If it has a context

}else{
return line.lineContent + "<br>";
context.lineContent = context.lineContent + "<br>";
return true;
}

@@ -82,6 +83,8 @@

// Remove leading * else don't..
var newString = before + line.lineContent.substring(1) + after + "<br>";
return newString;
}else{ // no context, nothing to remove
return line.lineContent;
if (context.lineContent[0] === '*') {
context.lineContent = context.lineContent.substring(1)
}
context.lineContent = before + context.lineContent + after + "<br>";
return true;
}

@@ -88,0 +91,0 @@ }

{
"description": "Citations for Etherpad Documents, very WIP.",
"name": "ep_citation",
"version": "0.0.3",
"version": "0.0.4",
"author": {

@@ -17,3 +17,3 @@ "name": "John McLear",

},
"license" : "Apache-2.0"
"license": "Apache-2.0"
}
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