diff --git a/doc/lib/pgBackRestDoc/Common/DocRender.pm b/doc/lib/pgBackRestDoc/Common/DocRender.pm index 5cb0bf486..939b3dc9e 100644 --- a/doc/lib/pgBackRestDoc/Common/DocRender.pm +++ b/doc/lib/pgBackRestDoc/Common/DocRender.pm @@ -652,14 +652,15 @@ sub processTag } elsif ($strType eq 'markdown') { + # Markdown does not support cross-page section anchors so point at the website if (defined($strSection)) { - confess &log( - ERROR, - "page and section links not supported for type ${strType}, value '" . $oTag->valueGet() . "'"); + $strUrl = '{[backrest-url-base]}/' . $oTag->paramGet('page') . '.html#' . substr($strSection, 1); + } + else + { + $strUrl = "${strPage}.md"; } - - $strUrl = "${strPage}.md"; } else {