From 8de7b39a79ff94a9fdefd792ea1f65c41400f654 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 27 Jan 2022 16:06:05 +0100 Subject: [PATCH] fix wrapper->fmt calls --- mdref/Formatter/Wrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdref/Formatter/Wrapper.php b/mdref/Formatter/Wrapper.php index 400de29..d2696d3 100644 --- a/mdref/Formatter/Wrapper.php +++ b/mdref/Formatter/Wrapper.php @@ -199,7 +199,7 @@ class Wrapper { $span->setAttribute("class", "constant"); $span->textContent = $item; if (!$strict && $pld->currentSection === "Constants:" && $node->parentNode->nodeName === "li" && $node->parentNode->firstChild === $node) { - $perm = $this->createPermaLink($span, $this->formatSlug($item), $pld); + $perm = $this->fmt->createPermaLink($span, $this->fmt->formatSlug($item), $pld); $span->insertBefore($perm); } return $span; -- 2.30.2