public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* do not understand why -t plain writes markdown links for the toc
@ 2017-12-23 14:05 'Bernhard Weichel' via pandoc-discuss
       [not found] ` <95b15d86-ef31-4a44-8fec-d756c6cdb4c8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: 'Bernhard Weichel' via pandoc-discuss @ 2017-12-23 14:05 UTC (permalink / raw)
  To: pandoc-discuss


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

I see a difference in the 'plain' write with respect to table of contents


The following test file

#this is heder 1

bla

## this is header 2

bla bla


processed with 

pandoc_2.0.5 -f markdown-space_in_atx_header --toc --standalone  -t plain 
-o - y.md 

yields


-   [this is heder 1](#this-is-heder-1)
    -   [this is header 2](#this-is-header-2)



THIS IS HEDER 1


bla


this is header 2

bla bla

as we see, the table of contents comes out as links which make no sense in 
a plain text. When I pie it through pandoc again by 

pandoc_2.0.5 -f markdown-space_in_atx_header --toc --standalone  -t plain 
-o - y.md  | pandoc_2.0.5 -t plain

I get the intended result, where the toc has no links

-   this is heder 1
    -   this is header 2

THIS IS HEDER 1

bla

this is header 2

bla bla




-- 
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/95b15d86-ef31-4a44-8fec-d756c6cdb4c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: do not understand why -t plain writes markdown links for the toc
       [not found] ` <95b15d86-ef31-4a44-8fec-d756c6cdb4c8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-12-24  5:30   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2017-12-24  5:30 UTC (permalink / raw)
  To: 'Bernhard Weichel' via pandoc-discuss

It's a bug. I've fixed this.

+++ 'Bernhard Weichel' via pandoc-discuss [Dec 23 17 06:05 ]:
>   I see a difference in the 'plain' write with respect to table of
>   contents
>   The following test file
>   #this is heder 1
>   bla
>   ## this is header 2
>   bla bla
>   processed with
>   pandoc_2.0.5 -f markdown-space_in_atx_header --toc --standalone  -t
>   plain -o - y.md
>   yields
>   -   [this is heder 1](#this-is-heder-1)
>       -   [this is header 2](#this-is-header-2)
>   THIS IS HEDER 1
>   bla
>   this is header 2
>   bla bla
>   as we see, the table of contents comes out as links which make no sense
>   in a plain text. When I pie it through pandoc again by
>   pandoc_2.0.5 -f markdown-space_in_atx_header --toc --standalone  -t
>   plain -o - y.md  | pandoc_2.0.5 -t plain
>   I get the intended result, where the toc has no links
>   -   this is heder 1
>       -   this is header 2
>   THIS IS HEDER 1
>   bla
>   this is header 2
>   bla bla
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/95b15d86-ef31-4a44-
>   8fec-d756c6cdb4c8%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/95b15d86-ef31-4a44-8fec-d756c6cdb4c8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


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

end of thread, other threads:[~2017-12-24  5:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-23 14:05 do not understand why -t plain writes markdown links for the toc 'Bernhard Weichel' via pandoc-discuss
     [not found] ` <95b15d86-ef31-4a44-8fec-d756c6cdb4c8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-12-24  5:30   ` 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).