Skip to content

Commit

Permalink
Provide context for parent page
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainjule committed May 18, 2023
1 parent 95f37e7 commit c6d2907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/footnotes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class Footnotes {

public static function convert($text, $remove = false, $without = false, $only = false, $kt = true, $startAt = 1, $unwrapped = false) {
$text = $kt ? kirbytext($text) : $text;
$text = $kt ? kirbytext($text, ['parent' => $text->parent()]) : $text;

$matches = null;
$references = null;
Expand Down

0 comments on commit c6d2907

Please sign in to comment.