diff --git a/includes/utilities.php b/includes/utilities.php
index 0ba6ab3..975b5f2 100644
--- a/includes/utilities.php
+++ b/includes/utilities.php
@@ -203,8 +203,8 @@ function build_footnotes_index_from_content($content)
}
$footnotes = [];
- // Trouve les balises avec classe footnote-reference ET attribut footnote-content (ordre flexible)
- $pattern = '/]*class="[^"]*footnote-reference[^"]*"[^>]*footnote-content="([^"]*)"[^>]*>|]*footnote-content="([^"]*)"[^>]*class="[^"]*footnote-reference[^"]*"[^>]*>/i';
+ // Trouve les balises avec classe footnote-reference ET attribut data-footnote-content (ordre flexible)
+ $pattern = '/]*class="[^"]*footnote-reference[^"]*"[^>]*data-footnote-content="([^"]*)"[^>]*>|]*data-footnote-content="([^"]*)"[^>]*class="[^"]*footnote-reference[^"]*"[^>]*>/i';
$has_footnotes = preg_match_all($pattern, $content, $matches, PREG_SET_ORDER);
if ($has_footnotes) {