Skip to content

Using gt::md() renders different markdown syntax differently, depending upon where it is called. #1892

Description

@rich-iannone

Using gt::md() renders different markdown syntax differently, depending upon where it is called.

Reprex:

---
format:
   docx: default
---


```{r}
gt::gt(gt::sp500[1:10, ]) |>
  gt::tab_header(gt::md("**Test header** <br>*__Test header two__*")) |>
  gt::tab_footnote(gt::md("_Test footnote_ <br>*__Test footnote two__*"))

Note:

  • The header respects the bold and italics, but not the line break
  • The footer does not respect any of the markdown syntax
Screenshot 2024-09-26 at 16 17 06

Versions:

  • gt: 0.11.0.9000
  • quarto: 1.5.57

Originally posted by @MikeJohnPage in #1067 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions