Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "jest-csl", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/cormacrelf/jest-csl", |
@@ -25,4 +25,6 @@ const CSL = require("citeproc"); | ||
if (!layout) { return null } | ||
// we add a dummy so that any auto-capitalization gets run on the dummy instead | ||
// let prefix = { name: 'text', attrs: { value: "{{jest-csl-prefix}}" }, children: [""] }; | ||
let invoke = { name: 'text', attrs: { macro: macroName }, children: [""] }; | ||
layout.attrs.prefix = ""; | ||
layout.attrs.prefix = "{{jest-csl-prefix}}"; | ||
layout.attrs.suffix = ""; | ||
@@ -132,3 +134,5 @@ layout.children = [invoke]; | ||
let out = engine.rebuildProcessorState(citations, format || 'html') | ||
return out.map(o => o[2]); | ||
return out.map(o => o[2] | ||
.replace(/\{\{jest-csl-prefix\}\}/g, "") | ||
.replace(/^\[CSL STYLE ERROR: reference with no printed form.\]$/, "")); | ||
} | ||
@@ -135,0 +139,0 @@ |
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
38490
759