Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be good to handle quoted literal blocks for rst #65

Closed
jgm opened this issue Jun 10, 2011 · 3 comments
Closed

It would be good to handle quoted literal blocks for rst #65

jgm opened this issue Jun 10, 2011 · 3 comments
Assignees

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

ReStructuredText has a form called "Quoted Literal Block".  I've quoted the spec below.

pandoc doesn't recognize this form, and converts into an ordinary paragraph.

From spec:

Quoted Literal Blocks

Quoted literal blocks are unindented contiguous blocks of text where each line begins with the same non-alphanumeric printable 7-bit ASCII character [5]. A blank line ends a quoted literal block. The quoting characters are preserved in the processed document.
[5] 

The following are all valid quoting characters:

! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~

Note that these are the same characters as are valid for title adornment of sections.




Google Code Info:
Issue #: 306
Author: [email protected]
Created On: 2011-06-06T22:11:37.000Z
Closed On: 
@ghost ghost assigned jgm Jun 10, 2011
@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Pandoc's rst parser handles quoted literal blocks using the '|' character. I didn't know you could also use these other characters -- perhaps that is a recent addition? In any case, I don't see how a rst parser is supposed to know whether

  • one
  • two

is a quoted literal block or a list! Also, I tried with rst2html (from Docutils 0.7), and while '>' and '|' worked, '}' did not.

Google Code Info:
Author: [email protected]
Created On: 2011-06-07T22:14:14.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

That's interesting. It isn't working for me. Can you post the rst you used
where it worked, so I can see if there's something wrong with my source?
(I'm not producing the rst, just trying to convert it.)

Google Code Info:
Author: [email protected]
Created On: 2011-06-08T20:19:16.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Oops, I was confusing "line blocks" (using |) with quoted literal blocks. Only the former are supported in pandoc.
Though I wonder how the rst parser is supposed to know whether

| hi
| there

is a line block or a quoted literal block?
It seems to match the specification for both.

Google Code Info:
Author: [email protected]
Created On: 2011-06-09T00:50:42.000Z

@jgm jgm closed this as completed in 2cdfa5e Dec 1, 2014
jgm added a commit that referenced this issue Feb 27, 2017
Merge in template file for Dokuwiki support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant