Skip to content

Commit

Permalink
Merge pull request #104 from atusy/flextable-chunk-index
Browse files Browse the repository at this point in the history
fix(as_paragraph_md): flextable's seq_index is renamed to .chunk_index (fixes #103)
  • Loading branch information
atusy authored Apr 12, 2024
2 parents 728be8b + 0eb23c1 commit efe8660
Show file tree
Hide file tree
Showing 15 changed files with 438 additions and 430 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ftExtra 0.6.4

* Fix broken markdown rendering from a change in **flextable** 0.9.5 (#103)

# ftExtra 0.6.3

* Require **flextable**>=0.9.5 to fix broken `colformat_md` (#101)
Expand Down
2 changes: 1 addition & 1 deletion R/as-paragraph-md.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ construct_chunk <- function(x, auto_color_link = "blue") {
.data$color
),
img_data = x$Image %||% list(NULL),
seq_index = dplyr::row_number()
.chunk_index = dplyr::row_number()
)
}

Expand Down
2 changes: 1 addition & 1 deletion R/footnote.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ collapse_footnotes <- function(value, sep) {
value %>%
lapply(dplyr::add_row, data.frame(txt = sep %||% "")) %>%
dplyr::bind_rows() %>%
dplyr::mutate(seq_index = dplyr::row_number()) %>%
dplyr::mutate(.chunk_index = dplyr::row_number()) %>%
list()
}

Expand Down
204 changes: 102 additions & 102 deletions docs/articles/format_columns.html

Large diffs are not rendered by default.

456 changes: 228 additions & 228 deletions docs/articles/group-rows.html

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions docs/articles/transform-headers.html

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ articles:
format_columns: format_columns.html
group-rows: group-rows.html
transform-headers: transform-headers.html
last_built: 2024-03-31T14:41Z
last_built: 2024-04-11T00:43Z

10 changes: 5 additions & 5 deletions docs/reference/as_flextable_methods.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/reference/as_paragraph_md.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/colformat_md.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit efe8660

Please sign in to comment.