public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Possible pandoc markdown->docbook bug
@ 2015-07-24 17:07 Danilo Cesar Lemes de Paula
       [not found] ` <d270551f-0376-49c5-bff6-06632a6cc081-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Danilo Cesar Lemes de Paula @ 2015-07-24 17:07 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi there,

Is there any reason why pandoc doesn't respect Markdown section numbering?
eg:

### Header 3

#### Header 4

converts to:

<sect1 id="header-3">
  <title>Header 3</title>
  <sect2 id="header-4">
    <title>header 4</title>
    <para>
    </para>
  </sect2>
</sect1>

Instead of sect3 and sect4...
It does convert it properly to HTML, using <h3> and <h4>.
Is there a way to workaround this?

If anyone is interested: 
http://pandoc.org/try/?text=%23%23%23+Header+3%0A%0A%0A%23%23%23%23+header+4&from=markdown&to=docbook


Thanks, 
Danilo

-- 
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/d270551f-0376-49c5-bff6-06632a6cc081%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: Possible pandoc markdown->docbook bug
       [not found] ` <d270551f-0376-49c5-bff6-06632a6cc081-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-07-24 17:21   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2015-07-24 17:21 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Because a sect3 can only occur within a sect2, according to
the DocBook spec.  Pandoc tries to emit valid DocBook, so
it puts the sections into a hierarchy.


+++ Danilo Cesar Lemes de Paula [Jul 24 15 10:07 ]:
>   Hi there,
>   Is there any reason why pandoc doesn't respect Markdown section
>   numbering?
>   eg:
>   ### Header 3
>   #### Header 4
>   converts to:
>   <sect1 id="header-3">
>     <title>Header 3</title>
>     <sect2 id="header-4">
>       <title>header 4</title>
>       <para>
>       </para>
>     </sect2>
>   </sect1>
>   Instead of sect3 and sect4...
>   It does convert it properly to HTML, using <h3> and <h4>.
>   Is there a way to workaround this?
>   If anyone is interested:
>   http://pandoc.org/try/?text=%23%23%23+Header+3%0A%0A%0A%23%23%23%23+hea
>   der+4&from=markdown&to=docbook
>   Thanks,
>   Danilo
>
>   --
>   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/d270551f-0376-49c5-
>   bff6-06632a6cc081%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/d270551f-0376-49c5-bff6-06632a6cc081-/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:[~2015-07-24 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 17:07 Possible pandoc markdown->docbook bug Danilo Cesar Lemes de Paula
     [not found] ` <d270551f-0376-49c5-bff6-06632a6cc081-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-07-24 17:21   ` 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).