Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pandocPublic

reST comment block #54

Closed
Closed
Assignees
jgm
@jgm

Description

@jgm

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp