How to suspend bookmark open in r markdown for pdf report

I've generated a pdf report with internal link by R markdown. In the first page an anchor or a label is defined and it is referred after page 3. This is a one way link (return-link doesn't need) and text color in red, so no bookmark is needed. How to suspend bookmark (make bookmark in visible) ?

---
title: ''
header-includes: 
- \usepackage{fancyhdr}
- \addtolength{\headheight}{1.0cm} 
- \pagestyle{fancyplain}
- \rhead{\textbf{\textcolor{red}{See Cover Page for Covid-19 Data Use}}}
- \renewcommand{\headrulewidth}{0pt} 
- \usepackage{comment}
- \lhead{\includegraphics[height=1.2cm]{L:/Statunit/Dashboard Reports/Common Functions/TJC_logo_color.png}} 
output:
  pdf_document: 
    latex_engine: xelatex
  html_document: default
  word_document: default
urlcolor: blue
---
<!-- DEFINED LABEL IN PAGE 1 -->
# \textcolor{red}{Notification} {#notification}

<!-- CLICK IT AFTER PAGE 3 PAGE 1 -->
`r if(!run_chunk) {"\\begin{comment}"}`
**Measure: ** `r mdesc`  
**Direction of Improvement: ** `r mdirect`  [[Data Notification]](#notification)      
`r if(!run_chunk) {"\\end{comment}"}`

Just to be sure, what do you call a bookmark ? Can you show an example so that I don't misunderstood what you need ?

Thanks.

please see the uploaded document for details. The squared portion in screenshot appears when open the pdf report. notification is anchor of the internal link and because of the red color syntax for Notification text in report , that makes bookmark text disappearing in the opened bookmarks section. Is it possible to make the bookmarks section invisible when open report?

question_invisible_bkmarks.pdf (93.9 KB)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.