diff --git a/lib/plugins/system/oembed/providers.json b/lib/plugins/system/oembed/providers.json index 47c4f5a0a..687dfbcf8 100644 --- a/lib/plugins/system/oembed/providers.json +++ b/lib/plugins/system/oembed/providers.json @@ -613,7 +613,7 @@ }, { "name": "Figma", "templates": [ - "(?:[\\w\\.-]+\\.)?figma.com/(file|proto|design|board)/.*" + "(?:[\\w\\.-]+\\.)?figma.com/(board|slides|deck|design|proto|file)/.*" ], "endpoint": "https://www.figma.com/api/oembed" }, { diff --git a/plugins/meta/description-from-p-tag.js b/plugins/meta/description-from-p-tag.js index dee655be3..89fbdafd8 100644 --- a/plugins/meta/description-from-p-tag.js +++ b/plugins/meta/description-from-p-tag.js @@ -10,7 +10,7 @@ export default { var description; cheerio("body p").each(function() { var $p = cheerio(this); - if ($p.children("label, input, button, div").length === 0 && !$p.parents("noscript, header,#header,[role='banner']").length) { + if ($p.children("label, input, button, div, script, span").length === 0 && !$p.parents("noscript, header,#header,[role='banner']").length) { var someText = decodeHTML5(decode($p.text())); var requiredLimit = Number.isInteger(__allowPTagDescription) ? __allowPTagDescription : 64; if (someText.length > requiredLimit) {