Skip to content

read_odt discards sections headers? #25

Description

@MatthieuStigler

Thanks for the package, that sounds very promising!

I notice that using read_odt, section titles formatted through the styles such as Heading 1, etc, don't appear?

See reprex below (using rmarkdown but problem hapened also with my original plain odt), where headers Section1 and Sub-section A have disappeared?

Thanks!

library(rmarkdown)

writeLines("# Section1\n## Sub-section A \n This is some text", "file.Rmd")
render("file.Rmd", odt_document())
#> processing file: file.Rmd
#> output file: file.knit.md
#> /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/pandoc +RTS -K512m -RTS file.knit.md --to odt --from markdown+autolink_bare_uris+tex_math_single_backslash --output file.odt --lua-filter /usr/lib/R/site-library/rmarkdown/rmarkdown/lua/pagebreak.lua
#> 
#> Output created: file.odt

library(textreadr)
read_odt("file.odt")
#> [1] "This is some text"
file.remove(c("file.Rmd", "file.odt"))
#> [1] TRUE TRUE

Created on 2023-06-10 with reprex v2.0.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions