The main thing to note is that disabling hlines makes pandoc fail to convert, so if they have the option set to false, I ignore for the duration of print and restore it afterwards.
# Not having hlines prevents conversion to gfm, so temporarily disable this option
if (output == "gfm") {
has_hlines <- get_option("tinytable_markdown_hlines")
if (isFALSE(has_hlines)) {
options(tinytable_markdown_hlines = TRUE)
on.exit(options(tinytable_markdown_hlines = FALSE))
}
}
Running directly in the terminal:
The main thing to note is that disabling hlines makes pandoc fail to convert, so if they have the option set to false, I ignore for the duration of print and restore it afterwards.