Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.6k
Description
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg571970.html
Debian Bug#500662 submitted by Ben Finney
Package: pandoc
Version: 0.46+2
Severity: normal
The reStructuredText specification allows for comment blocks of
arbitrary indented text
URL:http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#comments.
The following session shows that pandoc is incorrectly interpreting
these comment elements as some other kind of element.
Script started on Tue 30 Sep 2008 18:03:08 EST
$ infile=$(mktemp -t)
$ cat > $infile
Title of document
First paragraph
..
Comment block, should not appear in output
as defined by reStructuredText
Another paragraph
..
Another comment block.
This one spans severaltext elements.It doesn't end untilindentation is restored to thepreceding level.
A third paragraph
$ pandoc --from rst --to markdown $infile
Title of document
First paragraph
..
: Comment block, should not appear in output as defined by
reStructuredText
Another paragraph
..
Another comment block.
This one spans several text elements.
It doesn't end until indentation is restored to the preceding
level.
A third paragraph
$ rm $infile
$ exit
Script done on Tue 30 Sep 2008 18:07:49 EST
The above result is incorrect; instead the comment blocks in the input
should not be visible in the rendered form. For example, this would be
a correct rendering of the above example input:
Title of document
First paragraph
Another paragraph
A third paragraph
Google Code Info:
Issue #: 86
Author:fiddloso...@gmail.com
Created On: 2008-10-01T04:26:42.000Z
Closed On: 2008-11-06T22:10:44.000Z