@tryghost/kg-parser-plugins
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -148,2 +148,8 @@ 'use strict'; | ||
let pre = node.querySelector('pre'); | ||
// If this figure doesn't have a pre tag in it | ||
if (!pre) { | ||
return; | ||
} | ||
let code = pre.querySelector('code'); | ||
@@ -150,0 +156,0 @@ let figcaption = node.querySelector('figcaption'); |
@@ -160,3 +160,8 @@ import cleanBasicHtml from '@tryghost/kg-clean-basic-html'; | ||
let pre = node.querySelector('pre'); | ||
let pre = node.querySelector('pre'); // If this figure doesn't have a pre tag in it | ||
if (!pre) { | ||
return; | ||
} | ||
let code = pre.querySelector('code'); | ||
@@ -163,0 +168,0 @@ let figcaption = node.querySelector('figcaption'); // if there's no caption the preCodeToCard plugin will pick it up instead |
@@ -153,2 +153,8 @@ /* global DOMParser, window */ | ||
let pre = node.querySelector('pre'); | ||
// If this figure doesn't have a pre tag in it | ||
if (!pre) { | ||
return; | ||
} | ||
let code = pre.querySelector('code'); | ||
@@ -155,0 +161,0 @@ let figcaption = node.querySelector('figcaption'); |
{ | ||
"name": "@tryghost/kg-parser-plugins", | ||
"version": "0.5.0", | ||
"repository": "https://github.com/TryGhost/Ghost-SDK/tree/master/packages/kg-parser-plugins", | ||
"version": "0.5.1", | ||
"repository": "https://github.com/TryGhost/Koenig/tree/master/packages/kg-parser-plugins", | ||
"author": "Ghost Foundation", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "864650f87f0552ba899475151f8d505d6b39c6fc" | ||
"gitHead": "bb81c318c8c96ecdca7a73bdd4f5cc15f9b1b7c6" | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
36967
527