References in tables kable vs gt

Here's a dummy Rmd file. I have a table which is supposed to contain Bibtex references in one of the columns. I can pass it to knitr::kable(format=markdown). How do I accomplish the same with gt() ?

---
title: "Untitled"
author: "me"
date: "20/05/2020"
output: html_document
references:
- id: fenner2012a
  title: One-click science marketing
  author:
  - family: Fenner
    given: Martin
  container-title: Nature Materials
  volume: 11
  URL: 'http://dx.doi.org/10.1038/nmat3283'
  DOI: 10.1038/nmat3283
  issue: 4
  publisher: Nature Publishing Group
  page: 261-263
  type: article-journal
  issued:
    year: 2012
    month: 3
---

`` `{r tbl_kable}
df <- tibble::tribble(~n, ~`Reference`,
                       1, "@fenner2012a",
                       2, "@fenner2012a") 
knitr::kable(df, format="markdown")
`` `

`` `{r tbl_gt}
library(gt)
df %>% 
  gt() %>% 
  fmt_markdown(columns = vars(`Reference`)) 
`` `

# References

knitr::kable() renders OK


But gt() passes it through without converting to reference

UPDATE: Found related issue in {gt}

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.