diff2html
Advanced tools
Comparing version 3.4.40 to 3.4.41
@@ -108,3 +108,3 @@ import { closeTags, nodeStream, mergeStreams, getLanguage } from './highlight.js-helpers'; | ||
} | ||
const hljsLanguage = language && this.config.highlightLanguages.has(language) | ||
let hljsLanguage = language && this.config.highlightLanguages.has(language) | ||
? | ||
@@ -115,2 +115,5 @@ this.config.highlightLanguages.get(language) | ||
: 'plaintext'; | ||
if (hljs.getLanguage(hljsLanguage) === undefined) { | ||
hljsLanguage = 'plaintext'; | ||
} | ||
const codeLines = file.querySelectorAll('.d2h-code-line-ctn'); | ||
@@ -117,0 +120,0 @@ codeLines.forEach(line => { |
@@ -111,3 +111,3 @@ "use strict"; | ||
} | ||
const hljsLanguage = language && this.config.highlightLanguages.has(language) | ||
let hljsLanguage = language && this.config.highlightLanguages.has(language) | ||
? | ||
@@ -118,2 +118,5 @@ this.config.highlightLanguages.get(language) | ||
: 'plaintext'; | ||
if (hljs.getLanguage(hljsLanguage) === undefined) { | ||
hljsLanguage = 'plaintext'; | ||
} | ||
const codeLines = file.querySelectorAll('.d2h-code-line-ctn'); | ||
@@ -120,0 +123,0 @@ codeLines.forEach(line => { |
{ | ||
"name": "diff2html", | ||
"version": "3.4.40", | ||
"version": "3.4.41", | ||
"homepage": "https://diff2html.xyz", | ||
@@ -5,0 +5,0 @@ "description": "Fast Diff to colorized HTML", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1938975
5461