Skip to content

Commit

Permalink
Format table caption styles
Browse files Browse the repository at this point in the history
Ensures all captions with a table parent are formated using the figcaption style
  • Loading branch information
MarcioFCMartins committed Oct 11, 2018
1 parent 6a441ec commit 2fb4f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/rmarkdown/templates/radix_article/resources/distill.html
Expand Up @@ -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)
Expand Down

0 comments on commit 2fb4f06

Please sign in to comment.