downlit icon indicating copy to clipboard operation
downlit copied to clipboard

Don't link in Quarto TOC

Open hadley opened this issue 11 months ago • 1 comments

e.g. https://design.tidyverse.org

In particular, don't make links inside of existing links.

hadley avatar Jul 20 '23 18:07 hadley

For the reference, the TOC item:

  • After downlit (code-link: true)
<li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="https://design.tidyverse.org/cs-setNames.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><span class="chapter-number">10</span>&nbsp; <span class="chapter-title">Case study: <code></code></span></span></a><code><a href="https://rdrr.io/r/stats/setNames.html">setNames()</a></code>
  </div>
</li>
  • Before downlit (code-link: false)
<li class="sidebar-item">
  <div class="sidebar-item-container"> 
  <a href="http://127.0.0.1:3002/_book/cs-setNames.html" class="sidebar-item-text sidebar-link">
 <span class="menu-text"><span class="chapter-number">10</span>&nbsp; <span class="chapter-title">Case study: <code>setNames()</code></span></span></a>
  </div>
</li>

mcanouil avatar Jul 20 '23 18:07 mcanouil