Comparing version 2.2.4 to 2.2.5
@@ -11,2 +11,5 @@ 'use strict'; | ||
var lines = lang.split('hl_lines=')[1].trim(); | ||
if (lines.startsWith('"') && lines.endsWith('"') || lines.startsWith("'") && lines.endsWith("'")) { | ||
lines = lines.slice(1, -1).trim(); | ||
} | ||
param += '[][' + lines + ']'; | ||
@@ -13,0 +16,0 @@ } |
{ | ||
"name": "rebber", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Stringifies MDAST to LaTeX", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber", |
@@ -8,3 +8,9 @@ /* Expose. */ | ||
if (lang.indexOf('hl_lines=') > -1) { | ||
const lines = lang.split('hl_lines=')[1].trim() | ||
let lines = lang.split('hl_lines=')[1].trim() | ||
if ( | ||
(lines.startsWith('"') && lines.endsWith('"')) || | ||
(lines.startsWith("'") && lines.endsWith("'")) | ||
) { | ||
lines = lines.slice(1, -1).trim() | ||
} | ||
param += `[][${lines}]` | ||
@@ -11,0 +17,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
42548
1104