From 2fb40af766b290af917c5a9da824437ad481f8d7 Mon Sep 17 00:00:00 2001 From: yuganxia <31246176+yuganxia@users.noreply.github.com> Date: Wed, 3 Apr 2024 03:36:38 +0800 Subject: [PATCH] add full namespace flag --- syntax.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/syntax.php b/syntax.php index 484ea85..60cf0a4 100755 --- a/syntax.php +++ b/syntax.php @@ -448,10 +448,11 @@ protected function renderSimpleList($changes, $renderer, $flags = []) $renderer->listitem_open(1); $renderer->listcontent_open(); + $fullns = $flags['fullns'] ? $change['id'] : null; if (trim($change['extra']) == 'media') { - $renderer->internalmedia(':' . $change['id'], null, null, null, null, null, 'linkonly'); + $renderer->internalmedia(':' . $change['id'], $fullns, null, null, null, null, 'linkonly'); } else { - $renderer->internallink(':' . $change['id'], null, null, false, 'navigation'); + $renderer->internallink(':' . $change['id'], $fullns, null, false, 'navigation'); } if ($flags['summary']) { $renderer->cdata(' ' . $change['sum']); @@ -480,7 +481,7 @@ protected function renderSimpleList($changes, $renderer, $flags = []) */ protected function parseSimpleListFlags($flags) { - $outFlags = ['summary' => true, 'signature' => false, 'dayheaders' => false]; + $outFlags = ['summary' => true, 'signature' => false, 'dayheaders' => false, 'fullns' => false]; if (!empty($flags)) { foreach ($flags as $flag) { if (array_key_exists($flag, $outFlags)) {