Skip to content

Add an option to prevent colgroup column width ratios being added to pipe tables #8139

@daviewales

Description

@daviewales

If you create a markdown table using the pipe tables extension, and any line of the markdown source is more than the column width, then the relative cell widths in the output are calculated based on the ratio of dashes under the headings in the markdown.

For HTML output, this results in the insertion of an HTML colgroup block which forces the proportions of the cells.

However, I'm using R Markdown to insert computed values into my table cells, which means that the cells could realisticly have any number of characters in them, and I'd prefer to rely on the default column widths that the tables would have if there were no colgroup block at all.

I understand that if I use any of the other table extensions I'll get this, but as I'm inserting computed column values it makes the other table exentions unviable, as they rely on getting the spacing lined up exactly right, which I can't do here.

The workaround I have found to prevent this is to use the pandoc argument --columns 1000 , but it would be nice to be able to explicitly disable this feature.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions