Title: | Transform Google Docs into Quarto Books |
---|---|
Description: | Automate the Transformation of a Google Document into a Quarto Book source. |
Authors: | Maëlle Salmon [cre, aut] |
Maintainer: | Maëlle Salmon <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-12-27 06:14:28 UTC |
Source: | https://github.com/ropenscilabs/quartificate |
Transform Google Doc to Quarto book
quartificate(gdoc_id, path, render = FALSE, fix_lists = FALSE)
quartificate(gdoc_id, path, render = FALSE, fix_lists = FALSE)
gdoc_id |
ID of the Google Document. |
path |
A path, where to create the Quarto book. It will be created if needed. |
render |
Logical. Whether to render the resulting Quarto book. |
fix_lists |
Logical. Whether to try and fix lists, see Details. |
If your Google Document contains lists whose items span several lines,
you might get better results with the fix_lists
parameter set to TRUE
.
The problem is that in Google Docs lists, from the second line lines in items
have a small indentation. Pandoc tends to interpret this as a blockquote.
We try to fix that by merging blockquotes in their previous sibling,
when that previous sibling is a list item.
Nothing.
id <- googledrive::drive_find( q = "name contains 'My Example Document'" )$id quarto_dir <- withr::local_tempdir() quartificate::quartificate(id, quarto_dir, render = TRUE)
id <- googledrive::drive_find( q = "name contains 'My Example Document'" )$id quarto_dir <- withr::local_tempdir() quartificate::quartificate(id, quarto_dir, render = TRUE)