Closed
Description
Using gt-0.10.0, the presentation of URLs in tables overlaps with wrapped values. This may be a Quarto issue, but @rich-iannone suggested it get filed here.
---
title: gt URLs
---
```{r libraries}
#| echo: false
library(gt)
```
```{r prepare}
#| echo: false
df <- data.frame(
title = c(
"this is the first title",
"how.about.a.second.title"
),
url = c(
"https://example.com/this/url/is/really/really/long/but/we/still/want/its/link/included/in/the/table/even/though/this/is/ridiculous",
"https://example.com/another/very/long/url/that/is/not/the/first"
)
)
```
```{r present}
#| echo: false
gt(df) |>
fmt_url(columns = "url", target = "_blank") |>
cols_label(
title = "Title",
url = "URL"
)
```
As rendered with Quarto 1.3.450, the table scrolls:

As rendered with Quarto 1.4.518, the table cells are wrapped but the underlines URLs overlap with the wrapped line:

Session info
End the reproducible example with a call to sessionInfo()
in the same session (e.g. reprex(session_info = TRUE)
) and include the output.
Metadata
Metadata
Assignees
Type
Projects
Status
Done