From: Thomas Hodgson <thomas.hodgson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Customising toc in HTML
Date: Tue, 14 Feb 2023 05:20:59 -0800 (PST) [thread overview]
Message-ID: <b1b171d9-87c7-4bac-8ab4-a0473c401519n@googlegroups.com> (raw)
In-Reply-To: <6035b070-9f83-41e3-b392-5f6970e36757n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1174 bytes --]
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
[-- Attachment #1.2: Type: text/html, Size: 2227 bytes --]
next prev parent reply other threads:[~2023-02-14 13:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 14:16 Thomas Hodgson
[not found] ` <6035b070-9f83-41e3-b392-5f6970e36757n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-14 13:20 ` Thomas Hodgson [this message]
[not found] ` <b1b171d9-87c7-4bac-8ab4-a0473c401519n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-02-14 15:26 ` Bastien DUMONT
2023-02-15 10:23 ` Thomas Hodgson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1b171d9-87c7-4bac-8ab4-a0473c401519n@googlegroups.com \
--to=thomas.hodgson-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).