This is a correction of officer::docx_bookmarks(). See this PR.
docx_bookmarks2(
x,
return_vector = FALSE,
target = c("all", "header", "body", "footer")
)an rdocx object
use TRUE for compatibility with officer::docx_bookmarks()
one of c("all", "header", "body", "footer")
a list with all bookmarks