public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* gfm vs markdown_github table-of-contents behavior
@ 2018-12-22  4:26 Exploding Lemur
       [not found] ` <11efa53d-4e10-4a4a-86df-5ae46cdb79c3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Exploding Lemur @ 2018-12-22  4:26 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi!  I'm converting docx to markdown for use on Github.  When I generate 
the file using the gfm output type, it will not create a ToC, but when I 
use markdown_github, it does (but warns me that markdown_github is 
deprecated).
Commands used are as follows:
pandoc Blah.docx -f docx -t gfm -s --toc --extract-media=Blah -o Blah.md
pandoc Blah.docx -f docx -t markdown_github -s --toc --extract-media=Blah 
-o Blah.md

When I check pandoc --list-extensions=gfm vs pandoc 
--list-extensions=markdown_github they show no differences in which plugins 
are supported, enabled, and disabled by default.  A quick look at my 
environment variables doesn't show anything Pandoc-related.  I experience 
this behavior with both versions 2.2.1 and 2.5 on an Ubuntu 18.10 system.  
Any suggestions would be greatly appreciated.  Thanks!

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/11efa53d-4e10-4a4a-86df-5ae46cdb79c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: gfm vs markdown_github table-of-contents behavior
       [not found] ` <11efa53d-4e10-4a4a-86df-5ae46cdb79c3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-12-22  6:10   ` John MacFarlane
       [not found]     ` <m27eg2m6rl.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2018-12-22  6:10 UTC (permalink / raw)
  To: Exploding Lemur, pandoc-discuss


It should be possible to add support for this to gfm.
Why don't you submit an issue for this on our issue tracker?

Exploding Lemur <explodinglemur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi!  I'm converting docx to markdown for use on Github.  When I generate 
> the file using the gfm output type, it will not create a ToC, but when I 
> use markdown_github, it does (but warns me that markdown_github is 
> deprecated).
> Commands used are as follows:
> pandoc Blah.docx -f docx -t gfm -s --toc --extract-media=Blah -o Blah.md
> pandoc Blah.docx -f docx -t markdown_github -s --toc --extract-media=Blah 
> -o Blah.md
>
> When I check pandoc --list-extensions=gfm vs pandoc 
> --list-extensions=markdown_github they show no differences in which plugins 
> are supported, enabled, and disabled by default.  A quick look at my 
> environment variables doesn't show anything Pandoc-related.  I experience 
> this behavior with both versions 2.2.1 and 2.5 on an Ubuntu 18.10 system.  
> Any suggestions would be greatly appreciated.  Thanks!
>
> -- 
> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/11efa53d-4e10-4a4a-86df-5ae46cdb79c3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


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

* Re: gfm vs markdown_github table-of-contents behavior
       [not found]     ` <m27eg2m6rl.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2018-12-23 19:39       ` Exploding Lemur
  0 siblings, 0 replies; 3+ messages in thread
From: Exploding Lemur @ 2018-12-23 19:39 UTC (permalink / raw)
  To: pandoc-discuss


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

Ah, so gfm doesn't support the --toc flag?  I assumed I was just doing 
something wrong :)
Submitted https://github.com/jgm/pandoc/issues/5172

On Friday, December 21, 2018 at 10:10:23 PM UTC-8, John MacFarlane wrote:
>
>
> It should be possible to add support for this to gfm. 
> Why don't you submit an issue for this on our issue tracker? 
>
> Exploding Lemur <explodi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> writes: 
>
> > Hi!  I'm converting docx to markdown for use on Github.  When I generate 
> > the file using the gfm output type, it will not create a ToC, but when I 
> > use markdown_github, it does (but warns me that markdown_github is 
> > deprecated). 
> > Commands used are as follows: 
> > pandoc Blah.docx -f docx -t gfm -s --toc --extract-media=Blah -o Blah.md 
> > pandoc Blah.docx -f docx -t markdown_github -s --toc 
> --extract-media=Blah 
> > -o Blah.md 
> > 
> > When I check pandoc --list-extensions=gfm vs pandoc 
> > --list-extensions=markdown_github they show no differences in which 
> plugins 
> > are supported, enabled, and disabled by default.  A quick look at my 
> > environment variables doesn't show anything Pandoc-related.  I 
> experience 
> > this behavior with both versions 2.2.1 and 2.5 on an Ubuntu 18.10 
> system.   
> > Any suggestions would be greatly appreciated.  Thanks! 
> > 
> > -- 
> > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/11efa53d-4e10-4a4a-86df-5ae46cdb79c3%40googlegroups.com. 
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a4454c0a-1cce-4914-ae1c-2cad97c602e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2018-12-23 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-22  4:26 gfm vs markdown_github table-of-contents behavior Exploding Lemur
     [not found] ` <11efa53d-4e10-4a4a-86df-5ae46cdb79c3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-12-22  6:10   ` John MacFarlane
     [not found]     ` <m27eg2m6rl.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-12-23 19:39       ` Exploding Lemur

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