public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* HTML toc with number-offset
@ 2020-02-05 23:22 Conrad Cunningham
       [not found] ` <c82eba88-8a4a-4967-b3b8-f04eb52b18af-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Conrad Cunningham @ 2020-02-05 23:22 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 848 bytes --]

I have a Markdown file Test.html
------

% TITLE


# One


## Sub One


## Sub Two

-----

If I process it with the following command (on MacOS)


    pandoc --standalone  --number-sections --number-offset=2 --toc -o 
Test.html Test.md


I get an HTML file whose sections are numbered beginning with 3 (as 
expected), but the toc is numbered beginning with 1. I think this has given 
a toc numbered from 3 in the past. Any suggestions?



-- 
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/c82eba88-8a4a-4967-b3b8-f04eb52b18af%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3118 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HTML toc with number-offset
       [not found] ` <c82eba88-8a4a-4967-b3b8-f04eb52b18af-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-02-06  0:49   ` John MacFarlane
       [not found]     ` <yh480kwo90v8tq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-02-06  0:49 UTC (permalink / raw)
  To: Conrad Cunningham, pandoc-discuss

Looks like a bug to me. Please put an issue on the tracker
at https://github.com/jgm/pandoc/issues


Conrad Cunningham <hcc.olemiss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I have a Markdown file Test.html
> ------
>
> % TITLE
>
>
> # One
>
>
> ## Sub One
>
>
> ## Sub Two
>
> -----
>
> If I process it with the following command (on MacOS)
>
>
>     pandoc --standalone  --number-sections --number-offset=2 --toc -o 
> Test.html Test.md
>
>
> I get an HTML file whose sections are numbered beginning with 3 (as 
> expected), but the toc is numbered beginning with 1. I think this has given 
> a toc numbered from 3 in the past. Any suggestions?
>
>
>
> -- 
> 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/c82eba88-8a4a-4967-b3b8-f04eb52b18af%40googlegroups.com.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HTML toc with number-offset
       [not found]     ` <yh480kwo90v8tq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-02-06  1:20       ` John MacFarlane
  0 siblings, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2020-02-06  1:20 UTC (permalink / raw)
  To: Conrad Cunningham, pandoc-discuss

Never mind, I've fixed it already.


John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes:

> Looks like a bug to me. Please put an issue on the tracker
> at https://github.com/jgm/pandoc/issues
>
>
> Conrad Cunningham <hcc.olemiss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> I have a Markdown file Test.html
>> ------
>>
>> % TITLE
>>
>>
>> # One
>>
>>
>> ## Sub One
>>
>>
>> ## Sub Two
>>
>> -----
>>
>> If I process it with the following command (on MacOS)
>>
>>
>>     pandoc --standalone  --number-sections --number-offset=2 --toc -o 
>> Test.html Test.md
>>
>>
>> I get an HTML file whose sections are numbered beginning with 3 (as 
>> expected), but the toc is numbered beginning with 1. I think this has given 
>> a toc numbered from 3 in the past. Any suggestions?
>>
>>
>>
>> -- 
>> 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/c82eba88-8a4a-4967-b3b8-f04eb52b18af%40googlegroups.com.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-06  1:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 23:22 HTML toc with number-offset Conrad Cunningham
     [not found] ` <c82eba88-8a4a-4967-b3b8-f04eb52b18af-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-02-06  0:49   ` John MacFarlane
     [not found]     ` <yh480kwo90v8tq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-02-06  1:20       ` John MacFarlane

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).