-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
RST Writer: auto-wrapping accidentally creates "Definition list" in tables #3276
Comments
This is similar to #3270. We can escape every colon to ensure this never happens, but then the output is ugly. Ideal thing would be a much more sophisticated wrapping method. |
Ok, I think this one should be closed. Should the title of #3270 be changed to reflect the more general problem? |
Since #3270 is fixed, probably I should keave this open instead. |
I don't really understand your case; can you give a minimal
case I can reproduce?
|
I'll try to hunt down a smaller example. Since the nature of the problem involves wrap and table make it difficult to reproduce. |
Try using a small value of --columns
+++ ickc [Dec 07 16 03:21 ]:
… I'll try to hunt down a smaller example. Since the nature of the
problem involves wrap and table make it difficult to reproduce.
—
You are receiving this because you commented.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #3276 (comment)
2. https://github.com/notifications/unsubscribe-auth/AAAL5JC9wbEQBSycPnABi03f8HkV8aGiks5rFpbIgaJpZM4LDkfG
|
I have a similar issue with Pandoc 1.19 when converting from markdown_github to rST:
where
generates this broken rST:
The workaround for me is using I think that |
+++ Nicola Soranzo [Dec 08 16 12:26 ]:
The workaround for me is using --columns=500.
A nicer solution is to use longer bars under the headers
(see the documentation for pipe tables).
I know you may not have this option, though, if you're
just taking content from GitHub.
I think that --wrap=none should stop pandoc from enforcing a column
width, but unfortunately it has no effect on tables.
It's still nice to be able to adjust relative column widths
in tables, even if you use --wrap=none.
Remember that --wrap=none also affects formats like HTML and
LaTeX.
|
Also see #3171. I also confused with the wrap and column option too. While the manual said
May be it should mention something related to the fact that |
Agreed, but maybe a different option to specify this would be better, e.g. |
This works only to a certain extent because if multiple columns need to be of a certain width to not break rST syntax, adjusting the relative width is not enough and increasing |
I think this is a dup of #3340 |
Sorry I don't have a MWE since the input and output has to be in a specific way such that:
say, in a table cell in markdown:
has_header: True | False
, the rst output wrapped intoThe
:
on the beginning of the new line becomes a definition list, and rst2html complains:Example
The only example I can give is in native pandoc AST since the table is generated by my filter:
command used:
The AST, generated RST and HTML are here.
The text was updated successfully, but these errors were encountered: