idea-html2pdf
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -66,3 +66,2 @@ "use strict"; | ||
handlebarsRegisterDefaultHelpers() { | ||
const lang = this.options.language ?? this.options.languages.default; | ||
const defaultHelpers = { | ||
@@ -87,3 +86,5 @@ get: (context, x) => context[x], | ||
mdToHTML: (s) => typeof s === 'string' ? new Handlebars.SafeString((0, idea_toolbox_1.mdToHtml)(s)) : s, | ||
label: (label) => this.options.languages && label ? label[lang] ?? label[this.options.languages.default] : null, | ||
label: (label) => this.options.language && this.options.languages && label | ||
? label[this.options.language] ?? label[this.options.languages.default] | ||
: null, | ||
translate: (s) => this.options.additionalTranslations && s && this.options.additionalTranslations[s] | ||
@@ -90,0 +91,0 @@ ? this.options.additionalTranslations[s] |
{ | ||
"name": "idea-html2pdf", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "IDEA helper for generating a PDF from HTML contents", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
526
26392