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

Support line blocks (verse markup) in reST. #205

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

Support line blocks (verse markup) in reST. #205

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

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

At http://wiki.darcs.net/CodingStyle I am trying to use
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#line-blocks
but pandoc appears not to support them yet.

Google Code Info:
Issue #: 149
Author: trentb...@gmail.com
Created On: 2009-06-20T12:35:01.000Z
Closed On: 2009-06-25T02:01:45.000Z

@ghost ghost assigned jgm Jun 10, 2011
@jgm jgm closed this as completed Jun 10, 2011
@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

They are supported:
{{{
% pandoc -r rst
| this is
| a poem

this is
a <em
poem</em

</p

}}}

Can you send the sample input that is not working for you, and say which version of
pandoc you are using?

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2009-06-22T23:32:40.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

The page I linked to, CodingStyle, has the example at the bottom of the page. It's a gitit instance, so
there should be a "view source" link somewhere on that page, too.

I guess what is happening is that you're only supporting line blocks where lines are not broken, e.g.

| foo
| bar

is OK, but if a single logical line is to be "unwrapped" by the parser:

| Nor again is there anyone who
loves or pursues or desires to obtain pain of itself,
| because it is pain,
| but because occasionally circumstances occur in
which toil and pain can procure him some great pleasure.
| To take a trivial example,
| which of us ever undertakes laborious physical exercise,
| except to obtain some advantage from it?

Google Code Info:
Author: trentb...@gmail.com
Created On: 2009-06-23T01:07:02.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

I ran gitit --version, and it reported 0.6.1 -plugins. Unfortunately it didn't tell me what version of pandoc was
used, and there is no pandoc package listed by ghc-pkg on that server -- I guess someone made a static
binary and copied it to wiki.darcs.net.

Google Code Info:
Author: trentb...@gmail.com
Created On: 2009-06-23T01:11:44.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Ok, I didn't realize RST line blocks allow broken lines like that. It will have to
go in the todo list for pandoc, but in the mean time you can fix your page by
avoiding wrapping.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2009-06-23T03:11:24.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

This issue was closed by r1583.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2009-06-25T02:01:45.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

r1583 adds support for continuation lines in line blocks.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2009-06-25T02:02:35.000Z

jgm added a commit that referenced this issue Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant