Remove automatic item listing in toc for html (custom html template) #2326
-
TL;DR how do I get the list items ( I am working on a custom html template which is an update from an old Rmarkdown template I developed (see the simplehtml.html file). I pretty much have everything working now on quarto template repository except I can't get the table of contents to render the way I want it to. In the template file, I have the following code:
When I render the template as html file the toc populates as the following:
This is great but the the way the html renders the listed items look clunky. If I remove the So, does anyone know what partial file or modification to the template that I need to make to get quarto to render the file as this instead?
Cheers, Aaron |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That HTML syntax you want is not a valid list: |
Beta Was this translation helpful? Give feedback.
That HTML syntax you want is not a valid list:
<ul>
elements need to have<li>
children. So you can't do what you want, because Pandoc will not emit such lists. However, you can remove the decorations with CSS, by using https://developer.mozilla.org/en-US/docs/Web/CSS/list-style .