From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32178 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Re: Customising toc in HTML Date: Tue, 14 Feb 2023 05:20:59 -0800 (PST) Message-ID: References: <6035b070-9f83-41e3-b392-5f6970e36757n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1300_1884664530.1676380859788" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25783"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBPMVV2PQMGQETUP3JHA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 14 14:21:05 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f189.google.com ([209.85.222.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pRvF3-0006R8-8s for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 14 Feb 2023 14:21:05 +0100 Original-Received: by mail-qk1-f189.google.com with SMTP id a6-20020a05620a102600b00729952b4c73sf9273769qkk.6 for ; Tue, 14 Feb 2023 05:21:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=3Q0PyTCmHr87v+7L88P2maWETY486+uqZ5LWFmSnGa8=; b=fla0J0GaHDPzLyCl+cy+MPtVzk1RkGsZnjyl7Dl9XnPWk8je8cn3x8cHUomkkELzZw 8fsRb1OgdDRTb6bDVoykKDcLAtkX8Az+xKElw/sNRQM5HMjCjkjqUQFX72db84NFhzuw xfSS2V2vrcp00FfrRNhJIWWpOnuuAco7BcJeX4ARcIOOhiw/3J7m85Uk2ToTmxCA3wFC 7tbwQchCj7RnMHIVgxdmRx3loz428QeHLT9Eqn57414q/+vgDCSRUhfeeFKPF5JJNdOQ MMb8Kn+F89/tdEgLB0TW0ngl+/b7FtUewtR//8Oda1P7Y/PWhVxOtsicdOhNdYHusHT0 cayA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=3Q0PyTCmHr87v+7L88P2maWETY486+uqZ5LWFmSnGa8=; b=WxIK9CmuvLFR+x+7OGEwvIFnMhD++GS7DGGbb40E4t16fHIH64hJDwGjHNO1IIvslo LMMg64Rwqxdeomi17nkqQrdNLXCTkvfKF8x7r5fJAXVTrbgim9lXA2+ediv/iW/6Bnt2 5c2lWuqT1KMJwNnCVnQpuLr1cDoBEt0GjmHFKawmK71MXALPHaZLtYtASyU+PjAKHzfR FJ1PZr6Yup8QBjDPsqZE8lJG1/iqKNth80RMGp/Ru3Uh/kaTJHL1tpF0Ek06fOJX/3/C W/XFlmTjUOP5lfvEC5FUeBrxq1sHpZeUft0+UeEg0tstcY1L0Ek9+QZGYcBZseWZ58K4 l3nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=3Q0PyTCmHr87v+7L88P2maWETY486+uqZ5LWFmSnGa8=; b=BswFBiVirWz7+/pWLphLx0Cqc83uOidNH7cmds7NA2igH6DdbpDi9P6JOP/+aVkWL9 OBYofmvPlkfior8gBY9Eesh7XQqKzdr9bErJtI1J1EgiUuHpNVRrpJKHGJasSyWpEC7G yuSRl7rK0YDDKGZ2XvxsgMuoTQycJTgeyB4Sd9ToujreJuzYtuB5cgPuNzupoVd+/D2D UHMF1Bq9fRshDfcI2LGOXYd6bv8m8ul9OL+vVQXtgALhhLq+SfEvYiyvh6X4Lu1+qCdk jmR5uBsz5OXjNrkVExpXULhYAYznYDU7vj3qwLyNXWA9QLMwjJg5eSX2Po2uLo7MXXTh k8MQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKX/NJT55BjVS7aTGB24B0kTxCy6tX7ROR3EPNlYrTusAkE/rKsu 9Vu0yichwkf/Igmz5SP7u4g= X-Google-Smtp-Source: AK7set8yqUYXbP6nFLF2v5F7QtDZJ2ZABID636Nh/M56c143/+ji3OoOD38YBvjQi2cohqj53cpVKw== X-Received: by 2002:a05:622a:592:b0:3b8:56da:483c with SMTP id c18-20020a05622a059200b003b856da483cmr348217qtb.26.1676380864118; Tue, 14 Feb 2023 05:21:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:2b4a:b0:720:58b2:c9b8 with SMTP id dp10-20020a05620a2b4a00b0072058b2c9b8ls2467413qkb.5.-pod-prod-gmail; Tue, 14 Feb 2023 05:21:01 -0800 (PST) X-Received: by 2002:a37:d2c3:0:b0:719:2bb2:9dd9 with SMTP id f186-20020a37d2c3000000b007192bb29dd9mr126812qkj.213.1676380860500; Tue, 14 Feb 2023 05:21:00 -0800 (PST) In-Reply-To: <6035b070-9f83-41e3-b392-5f6970e36757n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: thomas.hodgson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32178 Archived-At: ------=_Part_1300_1884664530.1676380859788 Content-Type: multipart/alternative; boundary="----=_Part_1301_1065846503.1676380859788" ------=_Part_1301_1065846503.1676380859788 Content-Type: text/plain; charset="UTF-8" The best solution I have found is to put this in my metadata: ``` table-of-contents: [Section one](#section-one)[Section two](#section-two) ``` 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: > > ``` > > ``` > > > (I'm thinking about using , 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. ------=_Part_1301_1065846503.1676380859788 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The best solution I have found is to put this in my metadata:

```
table-of-contents: <span>[Section on= e](#section-one)</span><span>[Section two](#section-two)</sp= an>
```

Which works, but has to be = updated by hand.

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

I'm wondering whether there&= #39;s a way to change the HTML for a table of contents. In particular, I= 9;m wondering whether I could have something like this, instead of a unorde= red list:

```
<nav>
<span><a href=3D"#se= ction-one">Section one</a></span>
<span><a = href=3D"#section-two">Section two</a></span>
&l= t;/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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-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.
------=_Part_1301_1065846503.1676380859788-- ------=_Part_1300_1884664530.1676380859788--