rstudio / rstudio/gt

Allow outputting table with ID instead of wrapping in div

Open
#596 2 comments 0 reactions 1 assignee View on GitHub

@rich-iannone is already working on this.

Since Jun 10, 2020.

Difficulty: [3] Advanced Effort: [3] High Focus: HTML Output Priority: [2] Medium Type: ★ Enhancement
Dominant language
R
Stars
2.2k
Forks
225
Avg merge
1d 19h
Merged PRs (30d)
11

Description

Currently when using gt to generate HTML tables in rmarkdown the only way I have found to get just the table without the enclosing div is to use as_raw_html() but then this requires the use of inline_css=TRUE or you lose most nice formatting.

It would be good if it was possible to generate the table with formatting like normal but with the ID on the table and get rid of the superfluous wrapping div.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.