bookdown icon indicating copy to clipboard operation
bookdown copied to clipboard

In-line footnote in `bs4_book()` doesn't work with markdown extension to not use grid tables

Open mine-cetinkaya-rundel opened this issue 3 years ago • 0 comments

I'm using the following in my YAML to avoid grid tables so that I can set the column widths of my table manually by dragging the column dividers around when using the visual editor.

editor_options:
  markdown:
    mode: markdown
    extensions: -grid_tables-pipe_tables-multiline_tables

This serves the intended purpose however footnotes no longer appear inline when using bs4_book().

Table with narrow, wide, and wider column widths with footnote at the bottom of the page.

A reproducible example can be found at https://github.com/mine-cetinkaya-rundel/bookdown-table, and the rendered book at https://mine-cetinkaya-rundel.github.io/bookdown-table.

xfun::session_info('bookdown')
#> R version 4.1.1 (2021-08-10)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Big Sur 10.16
#> 
#> Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
#> 
#> Package version:
#>   base64enc_0.1.3   bookdown_0.24.1   bslib_0.3.0       digest_0.6.27    
#>   evaluate_0.14     fastmap_1.1.0     fs_1.5.0          glue_1.4.2       
#>   graphics_4.1.1    grDevices_4.1.1   highr_0.9         htmltools_0.5.2  
#>   jquerylib_0.1.4   jsonlite_1.7.2    knitr_1.34        magrittr_2.0.1   
#>   methods_4.1.1     R6_2.5.1          rappdirs_0.3.3    rlang_0.4.11.9001
#>   rmarkdown_2.11.1  sass_0.4.0        stats_4.1.1       stringi_1.7.4    
#>   stringr_1.4.0     tinytex_0.33      tools_4.1.1       utils_4.1.1      
#>   xfun_0.26         yaml_2.2.1

Created on 2021-09-14 by the reprex package (v2.0.1)

mine-cetinkaya-rundel avatar Sep 14 '21 16:09 mine-cetinkaya-rundel