trackdown icon indicating copy to clipboard operation
trackdown copied to clipboard

Integrate `redoc`-like feature

Open albert-ying opened this issue 2 years ago • 5 comments

Hi, is it possible to integrate the feature like redoc https://noamross.github.io/redoc/, which allows collaborative editing on a formatted word (hence google doc) file?

This would be more 'friendly' when interacting with your non-nerd collaborators...

albert-ying avatar Jul 07 '22 08:07 albert-ying

For reference https://github.com/noamross/redoc/issues/33

maelle avatar Jan 16 '23 13:01 maelle

The linked redoc issue is a tall order. I'd be fine if we used formatting for the following components:

  • headings
  • enumeration and itemization
  • boldface and italics
  • URLs marked explicitly with <...>
  • non-R code blocks and inline code

I believe most can be found with a very simple regex search and replace. We seem to be using already some of the features of the Google Docs API at https://developers.google.com/docs/api/how-tos/overview to achieve the highlighting.

Would you be open to an enhancement along those lines?

krlmlr avatar Mar 30 '23 07:03 krlmlr

Also, code chunks could be typeset in a font with size 1 or smaller.

krlmlr avatar Mar 30 '23 07:03 krlmlr

btw recently I heard about the docs API https://mastodon.social/@[email protected]/110078221869259228

maelle avatar Mar 30 '23 09:03 maelle

We can use the googledrive package to upload/download a .docx file, and even store it as Google doc. Such a file could be created by converting a modified version of the .Rmd/.qmd file to .docx . Perfect roundtrip will be a bit tricky though, maybe we need some postprocessing during the .docx -> .Rmd/.qmd conversion.

krlmlr avatar Jul 10 '23 21:07 krlmlr