diff --git a/inst/rmarkdown/templates/radix_article/resources/distill.html b/inst/rmarkdown/templates/radix_article/resources/distill.html index 64a9b3b8..9794eee8 100644 --- a/inst/rmarkdown/templates/radix_article/resources/distill.html +++ b/inst/rmarkdown/templates/radix_article/resources/distill.html @@ -831,8 +831,8 @@ $('tr.header').parent('thead').parent('table').addClass('pandoc-table'); $('.kable-table').children('table').addClass('pandoc-table'); - // add figcaption style to pandoc-table captions - $('.pandoc-table>caption').addClass("figcaption"); + // add figcaption style to table captions + $('caption').parent('table').addClass("figcaption"); // initialize posts list if (window.init_posts_list)