From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24328 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Separate tables of contents for each section Date: Sat, 1 Feb 2020 12:17:03 +0100 Message-ID: References: <3d838861-862c-4b15-8d91-a9b37d671736@googlegroups.com> <2cf07390-db35-422e-887a-bfde62a12a63@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001dc12a059d81d550" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="76994"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBPN42XYQKGQE63OZLPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Feb 01 12:17:21 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f62.google.com ([209.85.216.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ixqm9-000Jux-9z for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 01 Feb 2020 12:17:21 +0100 Original-Received: by mail-pj1-f62.google.com with SMTP id u10sf5875939pjy.2 for ; Sat, 01 Feb 2020 03:17:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580555840; cv=pass; d=google.com; s=arc-20160816; b=ggcYMdASz4iW32rqUQzuHLVe5Az7yuLwMLB7vaTx1JsqpfeE5wl5S53HDaH0e4Q22s sP7q9bvJMh635GHj6R0Lk6wE/UludMN+HRAV4tq+u6P4Dg/elLRHDdIN452H3CknAFlY BZ/gJSW843/E67qQryaS5ONn8diqTjeK9zctYGm9NiuD2fb1qIxpgMRRK7AH7X3tiJ2y rv0+XmF2xG824Qzy6MVxpGqxZMWhgrR8ZkSHRornQmRYtbfABCV1ffwwFSyugSth0GEw aLt3tZPaytB3Y8L+IlaC0iID/OvkURdrTOc1BAQqAngGoigXjq6jrysOlINmECQaRnq9 QDhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=lcOsaLloDYbGea/oBgGzjS/UEFj5d4rLSaxZGQ00lJM=; b=sRASCkwf+PrXTc2kw7F+7qonxxIGnzvlT0qW8cNyUokSSY2Sl95Yz+tZi8fugYxNWD ApaiYW5tQLRJuT4UwbuoV+3/psGm2GyNPKb1TFvICKRb2f0TgP6rpCj/dJCiOyzXiw4z OY4JC7gyQIReIAaKruUEY82EevxjZEcfWJgN+LrLejX0SO3jUrxpZd48oA5uPdJEzimp ntC14XT/8TtjdJYTrAcbY9ifvxV2QXf7DV+RbRtwOX01Tw16Bp023k63VVE0dPugpmD3 igZnLW1dMrHiKKrxdSs+hTEMDO3xNXbbZUxJsN9YGCnA4NUYqaZB5tYV7gDWQ+T4qJ43 XRBw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.210.45 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=lcOsaLloDYbGea/oBgGzjS/UEFj5d4rLSaxZGQ00lJM=; b=Lu5INVeMEhq3r18ly3Foc8Dzac5eSWtpSHSAWg6onNIFOdGYfXRssYcHskI9z97ILF i5xnD+68gWvPh0zVqRC8w/lSqk4qQCsSJNOSEoe/bSs5cScXELC/tHM5/6Oe6NGj5wK7 8ihfX6tuuNyBvno6qtola36Hv/2a+CgCn0BnepKvUfctLBYTok2CxV79tDzHOiQqOBzi bHPJs0gdf5b/ONax00YtwEDttOp0KtO9mOdIfCAawWZR/ceVz849T7bvHKcDOT2Ftv0S P4Wz1ZinSnCaOGvK6UZJGA1IqlV5EAkDGNlPzMerPM6s8Dk1z0CJxJ0vaI1MkKaAmkfU l9uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=lcOsaLloDYbGea/oBgGzjS/UEFj5d4rLSaxZGQ00lJM=; b=jt8XTTh0J9JYhKxCv4+tSAoInZhAuW+NqkQuB3UBE1Q45Q2J2A9v/bcsoIsb0I5R7+ 4lw8MBIQDAmT7U7bQeaI5GXdBvro98NIhK/MUfC+XVEbOC26TFEf+cUR3CncArWHkrZV 2Olt0hU40+9lut9RgfcZjxKwqTItd1p1BWp7lOW0/ni5u1z927C7puMzUGLDnGiFEKeI dNN0wIYymXqW3ZlYLXf4UOftMwwAACTmVT0u9YQxuqAY/kcKmkC6Ew/nJDbWnoT/2HjM j098XxkQiz3LOGCS5scbLzNCDMY8XZz3hucdOtZHBUf/+wXldSg/2ihnNB2oEjR+2qGs 0+8A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVn1xWPURHa/jHX0LFRxPiQdw6dOweMIPHqb8SaJZoGfcY667jy TeDZM97Ib5FPPhpPFhL+6ss= X-Google-Smtp-Source: APXvYqy3ea7q7x9SBMRpotTD/8sMDY+mpNh0/M83God2Oq+oszjsYuyRZqiDntRIk5PJnI4rRX9bcw== X-Received: by 2002:a17:90a:332e:: with SMTP id m43mr17960551pjb.107.1580555840100; Sat, 01 Feb 2020 03:17:20 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:94a6:: with SMTP id a6ls4048774pfl.7.gmail; Sat, 01 Feb 2020 03:17:16 -0800 (PST) X-Received: by 2002:aa7:8755:: with SMTP id g21mr15176216pfo.36.1580555836588; Sat, 01 Feb 2020 03:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580555836; cv=none; d=google.com; s=arc-20160816; b=yIO3GFEYOlfSGcmfLwfEU6zn/BUMjJmB3B7828jLku2t/ghlnWOKE+T7qH/FJKRNX4 3TGUW3s1FCKhqEdRvuCkGeqxP2J9W+0jsQy1lR5hMdKQr9HU4uttwEh12+YZS04aznF0 vOifY+4yx2xadj/A3VWXG5eO8NdwLSN0kylGySls04Q92NK7QTK9jov0Gt0MvSJ2oNQL 9CGQjJA9c3U+5ujqXdjbiZnKo218siru72d99zh1jz6BA37/mkgWv8oVs6tNv6HuTYZk vjaqXBaD1uvJVg5fBGrb41dRxRin+Ghzwo1VLj+5qTiCVjJ3ACy08VSlcTs/DAgtWi/M AXWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=lOSPNB84puOZD7ju3EgMyZ1aO2BYV5ECxrOup8Ziqcw=; b=a/X3BnbbGDKwcspHO7mT+nT3M62fQuoUw0Gj0WmX7in4ip9RYJBI3KajiebdnE54P5 3wkIWbVFgV/8Ibyuk2tW5itW1ZySWDLzY8PggfAnpLxA/BWY05M+kQsEK+cx4C6AJNCZ r7NGvG/Ky6mnRUVl2D9NgwXmQ2XkUYAIW43Pu2Vk8kdGs//z8UqlbQ8nKs0vVUVqNcKP Cgp/q7ULbUx8KTuM/KaBJlHfdqBA5e4QovVYpuQf0mKvgyYW3CuvjkAzAAEr6muSkEY/ YasYfDtcrCpWtVoMllnD3bzkd/uVGMJ4+6qwrgjFwUD6/AZL8J/6yADpT1bX9texriRd ubww== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.210.45 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com. [209.85.210.45]) by gmr-mx.google.com with ESMTPS id y13si544085plp.0.2020.02.01.03.17.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Feb 2020 03:17:16 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.210.45 as permitted sender) client-ip=209.85.210.45; Original-Received: by mail-ot1-f45.google.com with SMTP id h9so9105907otj.11 for ; Sat, 01 Feb 2020 03:17:16 -0800 (PST) X-Received: by 2002:a05:6830:14c9:: with SMTP id t9mr10484725otq.177.1580555835390; Sat, 01 Feb 2020 03:17:15 -0800 (PST) In-Reply-To: <2cf07390-db35-422e-887a-bfde62a12a63-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.210.45 as permitted sender) smtp.mailfrom=melroch-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:24328 Archived-At: --0000000000001dc12a059d81d550 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oops, sorry for forgetting to prepend the hash mark to the identifier =E2= =80=94 a stupid omission! I'm glad it worked after that fix. Den l=C3=B6r 1 feb. 2020 08:59Szabolcs Horv=C3=A1t skr= ev: > Thank you, this worked perfectly after a few minor code fixes and after > prepending # to the identifier. > > For the convenience of those, who, like me, don't really know any Lua, I > attach the fixed code. > > local chapter_level =3D 2 > local toc_level =3D 3 > local headings =3D {} > local current_chapter =3D nil > > local function collect_headings (head) > if head.level =3D=3D chapter_level then > local id =3D head.identifier > current_chapter =3D { > chapter =3D id, > toc =3D {}, > } > headings[id] =3D current_chapter > elseif head.level =3D=3D toc_level then > if current_chapter then > local toc =3D current_chapter.toc > toc[#toc+1] =3D head > end > end > return nil > end > > local function build_toc (heads) > local toc =3D {} > for _,head in ipairs(heads) do > local entry =3D { > pandoc.Plain{ > pandoc.Link( > head.content:clone(), -- text > '#' .. head.identifier, -- target > "", -- empty title > pandoc.Attr( > "", -- empty identifier > {'local-toc-link'} -- class > ) > ) > } > } > toc[#toc+1] =3D entry > end > return pandoc.Div( > { pandoc.BulletList(toc) }, > pandoc.Attr( "", {'local-toc'} ) > ) > end > > > local function insert_toc (head) > if head.level =3D=3D chapter_level then > local id =3D head.identifier > if headings[id] then > local toc =3D build_toc( > headings[id].toc > ) > return {head,toc} > end > end > return nil > end > > return { > { Header =3D collect_headings }, > { Header =3D insert_toc }, > } > > > On Friday, 31 January 2020 21:31:31 UTC+1, BP wrote: >> >> I believe a change has been made so that Lua filters now traverse the >> document in linear order. If this is the case in the latest version of >> Pandoc it should be doable with a two-pass filter: first a pass which >> collects the headings and then a pass which inserts the TsoC. If you wan= t >> hierarchical section numbering you probably also need to do a first pand= oc >> run which inserts the numbering and then a second pandoc run with the >> filter to insert the TsoC. Something like this: >> >> (Warning 1: Untested code! >> Warning 2: Make sure not to overwrite any existing file! >> Warning 3: Assumes that all chapters are heading level 2 =E2=80=94 cha= nge the >> chapter_level and toc_level variables to match! >> Warning 4: Assumes that each section/chapter has a unique identifier! >> ) >> >> local chapter_level =3D 2 >> local toc_level =3D 3 >> local headings =3D {} >> local current_chapter =3D nil >> >> local function collect_headings (head) >> if head.level =3D=3D chapter_level then >> local id =3D head.identifier >> current_chapter =3D { >> chapter =3D id >> toc =3D {} >> } >> headings[id] =3D current_chapter >> elseif head.level =3D toc_level then >> if current_chapter then >> local toc =3D current_chapter.toc >> toc[#toc+1] =3D head >> end >> end >> return nil >> end >> >> local function build_toc (heads) >> local toc =3D {} >> for _,head in ipairs(heads) do >> local entry =3D { >> pandoc.Plain{ >> pandoc.Link( >> head.content:clone(), -- text >> head.identifier, -- target >> "", -- empty title >> pandoc.Attr( >> "", -- empty identifier >> {'local-toc-link'} -- class >> ) >> ) >> } >> } >> toc[#toc+1] =3D entry >> end >> return pandoc.Div( >> { pandoc.BulletList(toc) }, >> pandoc.Attr( "", {'local-toc'} ) >> ) >> end >> >> >> local function insert_toc (head) >> if head.level =3D chapter_level then >> local id =3D head.identifier >> if headings[id] then >> local toc =3D build_toc( >> headings[id].toc >> ) >> return {head,toc} >> end >> end >> return nil >> end >> >> return { >> { Header =3D collect_headings }, >> { Header =3D insert_toc }, >> } >> >> >> Den fre 31 jan. 2020 19:27Szabolcs Horv=C3=A1t skrev= : >> >>> Hello everyone, >>> >>> I am converting a Markdown file to HTML. >>> >>> I can insert a table of contents at the beginning using the --toc optio= n. >>> >>> Is it possible to insert additional tables of contents under each >>> level-two or level-three heading? >>> >>> I am looking to create something similar to the organization of this >>> page: https://igraph.org/c/doc/igraph-Visitors.html#idm209455316208 >>> >>> Szabolcs >>> >>> -- >>> 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-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/3d838861-862c-4b15-8d9= 1-a9b37d671736%40googlegroups.com >>> >>> . >>> >> -- > 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/2cf07390-db35-422e-887a-= bfde62a12a63%40googlegroups.com > > . > --=20 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 e= mail 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/CADAJKhCEvixP6A4yZfmpuvoJj%2BPaZ%3D2KRQNdXLwhEveTzV0m9g%40ma= il.gmail.com. --0000000000001dc12a059d81d550 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oops, sorry for forgetting to prepend the hash mark to th= e identifier =E2=80=94 a stupid omission!
I'm glad it = worked after that fix.


Den l=C3=B6r 1 feb.= 2020 08:59Szabolcs Horv=C3=A1t <s= zhorvat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Thank you, this worked perfectly after a few minor code fixe= s and after prepending # to the identifier.

For the conv= enience of those, who, like me, don't really know any Lua, I attach the= fixed code.

local chapter_level =3D 2
local toc_level =3D 3
local head= ings =3D {}
local current_ch= apter =3D nil

local function collect_headings (head)
if head.level =3D=3D chapter_level then
local id =3D head.identifier<= /span>
current_chapter =3D {
chapter =3D id,<= /div>
toc =3D {},
}
headings[id] =3D = current_chapter
elseif hea= d.level =3D=3D toc_level then
= if current_chapter then
local toc =3D current_chapter= .toc
toc[#toc+1] =3D head
end
end
return nil
end
local function build_toc (heads)
local toc =3D {}
= for _,head in ipairs(heads) do
local entry =3D {
pandoc.Plain{
= pandoc.Link(
he= ad.content:clone(), -- text
= '#' .. head.identifier, -- ta= rget
""<= /span>, -- empty title
= pandoc.Attr(
= "", -- empty identifier
{'local-toc-link'} -- class
)
)
= }
}
toc[#toc+1] =3D entry
end
<= div> return pandoc.Div(
{ pandoc.BulletList(toc) },
pandoc.Attr( "", {'local-toc'} )
)
end


local function insert_toc (head)
if hea= d.level =3D=3D chapter_level then
local id =3D head.identifier<= /div>
if headings[id] then
local toc =3D build_toc(
headings[id].toc
)
return {= head,toc}
end
= end
return nil
= end

return {
{ Header =3D collect_headings },
{ Header =3D insert_toc },
}


On F= riday, 31 January 2020 21:31:31 UTC+1, BP wrote:
I believe a change has been made so that Lu= a filters now traverse the document in linear order. If this is the case in= the latest version of Pandoc it should be doable with a two-pass filter: f= irst a pass which collects the headings and then a pass which inserts the T= soC. If you want hierarchical section numbering you probably also need to d= o a first pandoc run which inserts the numbering and then a second pandoc r= un with the filter to insert the TsoC.=C2=A0 Something like this:

(Warning 1: Untested code!
=C2=A0 Warning 2: Make sure not to overwrite any existing file= !
=C2=A0 Warning 3: Assumes that all chapters are he= ading level 2 =E2=80=94 change the chapter_level and toc_level variables to= match!
=C2=A0 =C2=A0Warning 4: Assumes that each se= ction/chapter has a unique identifier!
)

local chapter_lev= el =3D 2
local toc_level =3D 3
local headings =3D {}
local current_chapter =3D ni= l

local function collect= _headings (head)
=C2=A0 if head.level =3D=3D chapter= _level then
=C2=A0 =C2=A0 local id =3D head.identifi= er
=C2=A0 =C2=A0 current_chapter =3D {
=C2=A0 =C2=A0 =C2=A0 chapter =3D id
=C2=A0= =C2=A0 =C2=A0 toc =3D {}
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0 headings[id] =3D current_chapter
=C2=A0 elseif head.level =3D toc_level then
=C2=A0 =C2=A0 if current_chapter then
=C2=A0 =C2= =A0 =C2=A0 local toc =3D current_chapter.toc
=C2=A0 = =C2=A0 =C2=A0 toc[#toc+1] =3D head
=C2=A0 =C2=A0 end=
=C2=A0 end
=C2=A0 return nil=
end

local function build_toc (heads)
=C2=A0 local to= c =3D {}
=C2=A0 for _,head in ipairs(heads) do
=
=C2=A0 =C2=A0 local entry =3D {
= =C2=A0 =C2=A0 =C2=A0 pandoc.Plain{
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 pandoc.Link(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 head.content:clone(), -- text
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 head.identifier, -- target
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "", -- empty title
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pandoc.Attr(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "", -- empty iden= tifier
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {&#= 39;local-toc-link'} -- class
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 )
=C2=A0 =C2=A0 =C2=A0 }
=C2=A0 = =C2=A0 }
=C2=A0 =C2=A0 toc[#toc+1] =3D entry
=C2=A0 end
=C2=A0 return pandoc.Div(=
=C2=A0 =C2=A0 { pandoc.BulletList(toc) },
=C2=A0 =C2=A0 pandoc.Attr( "", {'local-toc'= } )
=C2=A0 )
end


local fu= nction insert_toc (head)
=C2=A0 if head.level =3D ch= apter_level then
=C2=A0 =C2=A0 local id =3D head.ide= ntifier
=C2=A0 =C2=A0 if headings[id] then
=C2=A0 =C2=A0 =C2=A0 local toc =3D build_toc(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 headings[id].toc
=C2=A0 =C2=A0 =C2=A0 )
=C2=A0 =C2=A0 =C2=A0 retur= n {head,toc}
=C2=A0 =C2=A0 end
=C2=A0 end
=C2=A0 return nil
end

return {
=C2=A0 { Header =3D collect_headings },
=C2=A0 { Header =3D insert_toc },
}


Den fre 31 jan. 2020 19:27Szabolcs Horv=C3=A1t <szho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hello everyone,

I am converti= ng a Markdown file to HTML.

I can insert a table o= f contents at the beginning using the --toc option.

Is it possible to insert additional tables of contents under each level-t= wo or level-three heading?

I am looking to create = something similar to the organization of this page:=C2=A0https://igraph.org/c/doc/igraph-Visitors.html#id= m209455316208

Szabolcs

--
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 pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3d83= 8861-862c-4b15-8d91-a9b37d671736%40googlegroups.com.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2cf07390-db35= -422e-887a-bfde62a12a63%40googlegroups.com.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhCEvixP6A4yZfmpuvoJj%2BPaZ%3D2K= RQNdXLwhEveTzV0m9g%40mail.gmail.com.
--0000000000001dc12a059d81d550--