The best solution I have found is to put this in my metadata:

```
table-of-contents: <span>[Section one](#section-one)</span><span>[Section two](#section-two)</span>
```

Which works, but has to be updated by hand.

On Sunday, 12 February 2023 at 15:16:48 UTC+1 Thomas Hodgson wrote:
Hi,

I'm wondering whether there's a way to change the HTML for a table of contents. In particular, I'm wondering whether I could have something like this, instead of a unordered list:

```
<nav>
<span><a href="#section-one">Section one</a></span>
<span><a href="#section-two">Section two</a></span>
</nav>
```


(I'm thinking about using <https://readable-css.freedomtowrite.org/>, so I want the TOC to fit what will work with that.)

Tom

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b1b171d9-87c7-4bac-8ab4-a0473c401519n%40googlegroups.com.