Updated core, text description without footnotes

This commit is contained in:
markseu 2023-08-30 21:27:13 +02:00
parent 4ea3ac01ef
commit ec27937ade
2 changed files with 6 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// Core extension, https://github.com/annaesvensson/yellow-core
class YellowCore {
const VERSION = "0.8.115";
const VERSION = "0.8.116";
const RELEASE = "0.8.22";
public $content; // content files
public $media; // media files
@ -2398,7 +2398,9 @@ class YellowToolbox {
$lengthMax = 0;
}
if ($lengthMax<=0 || !$elementFound) break;
if ($hiddenLevel>0 || preg_match("/aria-hidden=\"true\"/i", $elementAttributes)) {
if ($hiddenLevel>0 ||
preg_match("/aria-hidden=\"true\"/i", $elementAttributes) ||
preg_match("/role=\"doc-noteref\"/i", $elementAttributes)) {
if (!is_string_empty($elementName) && is_string_empty($elementEnd) && !in_array(strtolower($elementName), $elementsVoid)) {
if (is_string_empty($elementStart)) {
++$hiddenLevel;

View file

@ -1,11 +1,11 @@
# Datenstrom Yellow update settings
Extension: Core
Version: 0.8.115
Version: 0.8.116
Description: Core functionality of your website.
DocumentationUrl: https://github.com/annaesvensson/yellow-core
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/main/downloads/core.zip
Published: 2023-05-24 13:27:21
Published: 2023-08-30 21:11:09
Developer: Anna Svensson
Tag: feature
system/extensions/core.php: core.php, create, update