Skip to content

converting from pipe table to grid table with blank rows #2615

Closed
vancleve opened this Issue · 5 comments

3 participants

@vancleve

I am trying to use org-mode to write nice tables that I can use with pandoc and latex, so I end up converting pipe table in markdown to grid tables in markdown.

However, it seems that a blank link in a pipe table confuses markdown when converting to a grid table. Using pandoc 1.15.2.1, I start with the following MWE as test.md:

| test  | header |
|-------+--------|
| first | row    |
|       |        |
| third | row    |

and run pandoc test.md -t markdown-pipe_tables-simple_tables-multiline_tables to obtain:

+--------------------------------------+--------------------------------------+
| test                                 | header                               |
+======================================+======================================+
| first                                | row                                  |
+--------------------------------------+--------------------------------------+
+--------------------------------------+--------------------------------------+
| third                                | row                                  |
+--------------------------------------+--------------------------------------+

where there are missing pipes for the second row.

@jgm
Owner
jgm commented

Closing in favor of #2616, which is the same issue.

@jgm jgm closed this
@tarleb

Sorry, I should have commented here too. #2616 is a different issue. I caught it while looking at this issue and wondering why one would use a markdown reader to read org-mode tables. The answer to this seems to be that the org mode reader makes things even worse.

I haven't spent much time on this, but it seems like the above hints at a bug in the markdown writer.

@vancleve

Thanks @tarleb! Also, the reason I want to use org-mode tables is that the table editor works so much better for me than table-mode in Emacs. So many problems putting in links and the like when editing with table-mode. Ugh.

@jgm
Owner
jgm commented

Sorry, reopening!

@jgm jgm reopened this
@jgm
Owner
jgm commented

I thought initially that the reader was interpreting this as two separate tables (as reported in #2616), but actually it is correctly reading it as a single table; it's just the rendering that's wrong.

@jgm jgm closed this in a796538
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm RST, Markdown writers: Fixed rendering of grid tables with blank rows.
Closes #2615.
4ae62bb
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@jgm RST, Markdown writers: Fixed rendering of grid tables with blank rows.
Closes #2615.
d975e71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.