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

-t markdown-simple_tables+multiline_tables not working with certain tables #3529

Closed
bpj opened this issue Mar 24, 2017 · 0 comments
Closed

Comments

@bpj
Copy link

bpj commented Mar 24, 2017

I (@bpj) said on pandoc-discuss:

Shouldn't I get multiline tables if I say this?

-t markdown-simple_tables-pipe_tables-grid_tables+multiline_tables

I get simple tables in spite of -simple_tables.

pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: /home/benct/.pandoc
Copyright (C) 2006-2016 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

@jgm responded:

This looks like a bug. Check out Markdown writer around
line 556:

    _ | isSimple &&
         isEnabled Ext_simple_tables opts -> fmap (nest 2,) $
              pandocTable opts (all null headers) aligns' widths'
                  rawHeaders rawRows
       | isSimple &&
         isEnabled Ext_pipe_tables opts -> fmap (id,) $
              pipeTable (all null headers) aligns' rawHeaders rawRows
       | not hasBlocks &&
         isEnabled Ext_multiline_tables opts -> fmap (nest 2,) $
              pandocTable opts (all null headers) aligns' widths'
                  rawHeaders rawRows

Note that the condition for a table that has no block-level
content where simple_tables is disabled and
multiline_tables is enabled (case #3) calls the same
function as the condition for a simple table with
simple_tables enabled (case #1).

Could you please submit a bug report for this, with a simple example
to reproduce?

This happens with the tables in the file in the attached zip file. I tried to create a more simple example but can't reproduce with them. Perhaps it is the particular mix of empty cells and combining diacritical marks?

(Never mind the divs around the tables. They instruct a filter to wrap the content of cells in certain columns in spans with certain classes when producing PDF. I didn't run that filter when attempting the markdown-to-markdown conversion. Rather I selected the lines containing each table and filtered them through the command

pandoc -t markdown-simple_tables-pipe_tables-grid_tables+multiline_tables

All this from inside Vim, but that shouldn't matter.

The file with the problematic tables is zipped in this file:
multiline-tables-extension-bug.zip

@jgm jgm added this to the pandoc 2.0 milestone Mar 24, 2017
@jgm jgm closed this as completed in 438e868 Mar 24, 2017
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

2 participants