demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

RST->Markdown: code blocks not properly converted. #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

RST code blocks are indented blocks of text following a paragraph ending
with two colons::

  like this

Alternatively, you can even do this!

::

  This is code.

I hope Google preserves the spacing.

When pandoc converts this to Markdown, it creates indented text:

> like
> this

and it does not preserve line breaks or spaces.

Instead, it should really convert indented blocks following a :: to blocks
indented by four spaces or a tab, which is what Markdown uses.

Thanks for your attention.

Original issue reported on code.google.com by martin.k...@gmail.com on 10 Oct 2007 at 9:39

GoogleCodeExporter commented 8 years ago
Hm, it actually includes the two colons in the output, producing

::

> something like
> this

in Markdown.

Original comment by martin.k...@gmail.com on 10 Oct 2007 at 9:41

GoogleCodeExporter commented 8 years ago
Fixed in r1046.  Thanks for the bug report!

Original comment by fiddloso...@gmail.com on 11 Oct 2007 at 5:50