colformat_md
(#101)Deprecated functions masking the corresponding ones from the flextable package (#95)
Renamed separate_header
to split_header
(#95)
Fixed a wrong escape regex in the sep
parameter of split_header
, span_header
, and separate_header
(#95)
Fix footnote_options
not controlling reference symbols correctly. Formerly, only symbols in the cells used the prefix
and the suffix
arguments. Now, footnote texts also respects them (#88).
?footnote_options
for the details (#90).
prefix
and suffix
labels by passing the corresponding arguments to footnote_options
footnote_options(ref = ...)
.Fix as_flextable.grouped_df
which broke second and subsequent group variables. Also, this function gains groups_arrange
argument. The default value is NULL
which implies FALSE
for the backward-compatibility. In the next version, NULL
remains the default but becomes deprecated. Then, TRUE
becomes the default in the subsequent release (thanks, @eitsupi, #76).
as_paragraph_md
and colformat_md
gains the metadata
argument with the default value rmarkdown::metadata
(#78).
as_flextable.grouped_df
uses dplyr::group_vars
to get names of grouping variables, and remove an internal synonym (#79).
as_paragraph_md
and colformat_md
disables two Pandoc extentions, raw_html
and raw_attribute
. Previously, these synstaxes raised errors on formatting (#80).
mention ftExtra respects csl
field in the YAML front matter (#83).
Fix a performance issue on colformat_md
when using footnotes (#85).
separate_header
and span_header
now refers to flextable::get_flextable_defaults()
to find default value for theme_fun
(#86).
as_paragraph_md
supports empty string, ""
, as an input (#68).colformat_md
applies on actual content of flextable rather than input dataset (#72).colformat_md
and as_paragraph_md
gains replace_na = ""
as a new default parameter. Previously, NA
are printed as "NA"
(#63).colformat_md
supports multiple paragraphs by collapsing them with a separator given to the .sep
argument (default: `“”) (#43).colformat_md
can now automatically add citations to reference on R Markdown (#48).colformat_md
can now contain cells with multiple footnotes. In addition, footnote keys are placed exactly the same place of source. The previous implementation moved the keys to the end of corresponding cells (#51).as_paragraph_md
supports variety of input formats by checking enabled extensions (#54).colformat_md(pandoc_args = c("--bibliography", "example.bib"))
should work even if bibliography field is missing from the YAML front matter (#41).colformat_md
converts cells to Pandoc’s AST by a single call of Pandoc. Previously it called pandoc for each cell. This change improves performance around 15X faster (#46). Note that #46 broken support for some input formats (e.g., commonmark) and old Pandoc (< 2.0.6), but the regression is already fixed (#53, #57).as_paragraph_md()
internally uses flextable::chunk_dataframe()
in order to avoid potential problems if the flextable package changes the chunk structure in the future (#56, thanks @davidgohel).math.lua
requires Pandoc >= 2.7.3 (#35)colformat_md
. Currently, one footnote per a cell is allowed, and it must be located at the end of the cell content (#22).footnote_options()
to configure options for footnotes (#23).colformat_md(part = "header")
(#23)..underline
class and the color
, shading.color
, and font.family
attributes (#24).md_extensions
and pandoc_args
arguments to colformat_md()
and as_paragraph_md()
(#26, #29).r-patched-solaris-x86
fails because of missing pandoc.colformat_md(as_flextable(data.frame('a\\\nb', stringsAsFactors = FALSE)))
).colformat_md()
colformat_md(auto_color_link = 'red')
..from
argument to specify Pandoc’s --from
argument.j
argument so that users can choose which columns to be treated as markdown based on dplyr::select()
’s semantics.as_paragraph_md
which parses markdown texts on selected cells rather than selected columns. Use this function within flextable::compose
.colformat_md()
which parses markdown text in the body of the flextable object.separate_header()
which separates header into multiple rows based on regular expression.span_header()
which separates header into multiple rows based on regular expression, and spans them if the adjacent values share the same value.with_blanks()
which inserts blank columns based on the semantics of dplyr::select
.as_flextable.data.frame
to convert data frames to flextable.as_flextable.grouped_df
to convert grouped data frames to flextable.