* Can Pandoc output `markdown+fenced_code_blocks`?
@ 2015-03-27 12:01 kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg
[not found] ` <b8601e3e-cd58-4ae5-ad52-63bf9b501ffd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg @ 2015-03-27 12:01 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 1358 bytes --]
I would like to convert an existing DocBook documentation of an OpenSource
project to Markdown. (There are about ~770 XML/DocBook files with ~190.000
LoC and ~7 MBytes of combined file size.
Outputting with a default pandoc -t markdown works well enough to continue
with the project.
However, I would like to automatically get *fenced* code blocks in the
output. Is that even possible? Or does pandoc support the
+fenced_code_blocks extension only with *input* Markdown, not with *output*
Markdown?
The command I tested with was
pandoc -t markdown+fenced_code_blocks -f docbook -o rpcclient.1.md rpcclient.1.xml
Unfortunately, the output does contain only standard (indented by 4 spaces)
code blocks. (The version of my pandoc is 1.13.2.)
--
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/b8601e3e-cd58-4ae5-ad52-63bf9b501ffd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 5492 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can Pandoc output `markdown+fenced_code_blocks`?
[not found] ` <b8601e3e-cd58-4ae5-ad52-63bf9b501ffd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-27 12:48 ` BP Jonsson
2015-03-27 13:20 ` BP Jonsson
1 sibling, 0 replies; 3+ messages in thread
From: BP Jonsson @ 2015-03-27 12:48 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Den 2015-03-27 13:01, kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org skrev:
>
>
> I would like to convert an existing DocBook documentation of an OpenSource
> project to Markdown. (There are about ~770 XML/DocBook files with ~190.000
> LoC and ~7 MBytes of combined file size.
>
> Outputting with a default pandoc -t markdown works well enough to continue
> with the project.
>
> However, I would like to automatically get *fenced* code blocks in the
> output. Is that even possible? Or does pandoc support the
> +fenced_code_blocks extension only with *input* Markdown, not with *output*
> Markdown?
>
> The command I tested with was
>
> pandoc -t markdown+fenced_code_blocks -f docbook -o rpcclient.1.md rpcclient.1.xml
>
> Unfortunately, the output does contain only standard (indented by 4 spaces)
> code blocks. (The version of my pandoc is 1.13.2.)
>
>
You will get fenced codeblocks when the `<pre>` has some attribute
(a class or id).
You might want to use a filter to ensure that all `<pre>`s have an
id, if only "code-1", "code-2"...
--
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/551551A1.5010601%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can Pandoc output `markdown+fenced_code_blocks`?
[not found] ` <b8601e3e-cd58-4ae5-ad52-63bf9b501ffd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-27 12:48 ` BP Jonsson
@ 2015-03-27 13:20 ` BP Jonsson
1 sibling, 0 replies; 3+ messages in thread
From: BP Jonsson @ 2015-03-27 13:20 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Den 2015-03-27 13:01, kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org skrev:
>
>
> I would like to convert an existing DocBook documentation of an OpenSource
> project to Markdown. (There are about ~770 XML/DocBook files with ~190.000
> LoC and ~7 MBytes of combined file size.
>
> Outputting with a default pandoc -t markdown works well enough to continue
> with the project.
>
> However, I would like to automatically get *fenced* code blocks in the
> output. Is that even possible? Or does pandoc support the
> +fenced_code_blocks extension only with *input* Markdown, not with *output*
> Markdown?
>
> The command I tested with was
>
> pandoc -t markdown+fenced_code_blocks -f docbook -o rpcclient.1.md rpcclient.1.xml
>
> Unfortunately, the output does contain only standard (indented by 4 spaces)
> code blocks. (The version of my pandoc is 1.13.2.)
>
>
Sorry, I just noticed you were starting from docbook, not html.
It seems that a valid language attribute on a programlisting will
result in a class and hence a fenced code block in markdown.
--
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/55155924.5090401%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-27 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27 12:01 Can Pandoc output `markdown+fenced_code_blocks`? kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg
[not found] ` <b8601e3e-cd58-4ae5-ad52-63bf9b501ffd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-27 12:48 ` BP Jonsson
2015-03-27 13:20 ` BP Jonsson
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).