Skip to content

Commit

Permalink
support empty cell with as_paragraph_md (solves #67)
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Jan 15, 2022
1 parent e15b90a commit 1046994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/as-paragraph-md.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ organize <- function(md_df,

construct_chunk <- function(x, auto_color_link = "blue") {
flextable::chunk_dataframe(
txt = x$txt,
txt = x$txt %||% "", # x can be empty list when input is empty string
italic = x$Emph %||% NA,
bold = x$Strong %||% NA,
url = x$Link %||% NA_character_,
Expand Down

0 comments on commit 1046994

Please sign in to comment.