From 9236478d51530d3ccdf0e1d2882db5c800dd190c Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Thu, 19 Sep 2024 11:37:56 -0400 Subject: [PATCH 1/2] meta: clean up noise from p-tag descriptions --- plugins/meta/description-from-p-tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 0d5060d8677372815ea75999877e53afe3676883 Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Thu, 19 Sep 2024 14:29:40 -0400 Subject: [PATCH 2/2] oembed: more URL patterns for Figma 2.0 embed kit --- lib/plugins/system/oembed/providers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, {