From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28405 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "carlosj...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: TOC in gfm output Date: Thu, 20 May 2021 22:09:58 -0700 (PDT) Message-ID: <9612aca4-1c8a-4797-88da-ec7ee792c56fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_40_1177183051.1621573798179" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14784"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDRPVLPL64GRBJ4BTWCQMGQENLW74TQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 21 07:10:02 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljxQA-0003dR-6s for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 May 2021 07:10:02 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id h8-20020a9d6a480000b02902edb9406104sf12405339otn.5 for ; Thu, 20 May 2021 22:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=tczUdFi8fV344D9W7YCMgfZ5KZ48k+FU56YE9jBd0cM=; b=hoyp0BV+aM+9dacWbb51zM4nKOoLBi1BtyFKxFbZ0gwI2lG7lA7fR0SLEgM6sJ84Eb EYss/ya5wUxdMW7PXyc97z0RzDBtPfag5pc0F6kKxemBPdhDDvYYK8jsriJeUh1kbj1j NS/NeD1/mJOFsBIh3EUBVgedh7SVBlkcGX42zgOSDV3jMT+nAT5sN0vt96I4WHC4ezUt V9ecAoRVg2Swj+IIy5N3CQrFRDUCTkBmKVn2geqJvSXUR8pOYRWo47M1Do3TY0jY1G0P EXttXK30aZhRDBm1BGZaMZB8bxWUTnyIHemephMAw2n8VeppXd0Oe2dHtIkicUNoR50t RKIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=tczUdFi8fV344D9W7YCMgfZ5KZ48k+FU56YE9jBd0cM=; b=c6l179DZ1/SzW+xuSr0amZGqtNS2k5ocYLmTPLRRuKpKyOhJDqeJZdhjtzgpUxgUz7 0AmsIyZmeKUsnwNu6OBx9Yjan7GOKsrVAXs/eJzf3zLQoLE9xYSQYAnrSbFfeWy2KuXk Z/Agp1y/JP4rMZWArvEhD6crEuxYMOmS6shV/HDXvGjv4euUZ5Xhg30jIqTjtKXui7/h 8YolnJ4iT7XjP9kAkncG56dqST+kBgtwxUWYSjDdzE4gkQeEHG0gTXxrucc4zl9sczQK 1tq25dFI9hwo4OgbH7fGktqoO90c1tSv+xd+YJr0JM1PI67RxpR6trQHUyYgSMQ1kUqR XAHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=tczUdFi8fV344D9W7YCMgfZ5KZ48k+FU56YE9jBd0cM=; b=DgvV082pXDE/qW/iAiW20HQE0JG+/BFnM0+W83YyXpkmEQtnOwxVvrlfpG8xPDNfTr kKK8iZ7MHhPie94tjQ6PuGhtNa8+xiVovphgTuR45uMnsaD4MqjaCc+CZDFQKiObAVj7 yiRnW216jXdEx/j6j9V3jji/usEUxpEMIsAex8bti8SO9bHENgKD+qHwlLML0alp7ci8 kwuCp7RSmsuvBDU5Zl6m3RORfbFby5dB8rCpvddnYk8bs0chTEBjfcOt9DvpRYQJwyog JV+Haiqr0X4gUEoI2cfXrQxAZ4WPTEOqnvQ9r6VUsKpm16hufGLOD4OJrOYZn0F1epUT lNAA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530GTNvuI6YvcRcdMULMagTZhNovira3VmI3e8YspaKLq3TqL9cm aAOQaN8w9hB9FDZr5f7A0ws= X-Google-Smtp-Source: ABdhPJxDuemPGYdPpMHdFdkYQnZUc4UzeFDasf63xS0y9aI9EbMPAKcCmyfVdUM88Qkq99kehPbu1g== X-Received: by 2002:aca:f156:: with SMTP id p83mr808027oih.91.1621573800745; Thu, 20 May 2021 22:10:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:b443:: with SMTP id h3ls412534ooo.4.gmail; Thu, 20 May 2021 22:09:59 -0700 (PDT) X-Received: by 2002:a4a:4bc2:: with SMTP id q185mr6558813ooa.19.1621573798843; Thu, 20 May 2021 22:09:58 -0700 (PDT) X-Original-Sender: carlosjosepita-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:28405 Archived-At: ------=_Part_40_1177183051.1621573798179 Content-Type: multipart/alternative; boundary="----=_Part_41_477746441.1621573798179" ------=_Part_41_477746441.1621573798179 Content-Type: text/plain; charset="UTF-8" Hi all, I would like to produce gfm from pandoc markdown. One of the features I'm interested in is TOC generation. Now, I can get a TOC by passing the --toc flag to pandoc, but what I want is to specify metadata in each document that enables/disables TOC creation. Unfortunately, if I add toc=true as metadata I'm stuck with these two alternatives: 1. When the output is markdown, the entire metadata block is preserved verbatim. 2. When the output is gfm, the entire metadata block is removed. In neither of these cases a TOC is inserted into the document, as with the --flag. What am I missing? Is this really possible? The ability to output a markdown TOC is there, what is not obvious to me is how to enable that from the document itself. Thank you in advance, Carlos -- 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/9612aca4-1c8a-4797-88da-ec7ee792c56fn%40googlegroups.com. ------=_Part_41_477746441.1621573798179 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all,

I would like to produce gfm from pandoc markdown= . One of the features I'm interested in is TOC generation. Now, I can get a= TOC by passing the --toc flag to pandoc, but what I want is to specify met= adata in each document that enables/disables TOC creation. Unfortunately, i= f I add toc=3Dtrue as metadata I'm stuck with these two alternatives:
=

1. When the output is markdown, the entire metadata blo= ck is preserved verbatim.

2. When the output is gf= m, the entire metadata block is removed.

In neithe= r of these cases a TOC is inserted into the document, as with the --flag.

What am I missing? Is this really possible? The abi= lity to output a markdown TOC is there, what is not obvious to me is how to= enable that from the document itself.

Thank you i= n advance,
Carlos

--
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/9612aca4-1c8a-4797-88da-ec7ee792c56fn%40googlegroups.= com.
------=_Part_41_477746441.1621573798179-- ------=_Part_40_1177183051.1621573798179--