From: Michael Wallner Date: Thu, 27 Jan 2022 15:06:05 +0000 (+0100) Subject: fix wrapper->fmt calls X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8de7b39a79ff94a9fdefd792ea1f65c41400f654;hp=a94ecb1009610a763dd74a7eebc4754b6643d832;p=mdref%2Fmdref fix wrapper->fmt calls --- 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;