Skip to content

Collapsible code chunks? #395

Open
Open

Description

@mbacou

Same feature as in rmarkdown::html_document(code_folding="hide") with gitbook() and html_chapters()?

Just wondering whether this is on bookdown's roadmap? I understand this wouldn't work in other formats but HTML, but I tend to use bookdown to share complex working drafts and studies that span multiple sections with partners/clients who are not interested in scrolling through long chunks of R codes. Completely hiding all codes (as I do now) is less informative and less reproducible though (and some of my colleagues would rather see them in the document).

Thanks!

Activity

  1. yihui commented on May 15, 2017

    @yihui
    Collaborator

    I think it is possible to implement it for gitbook (e.g. a button on the toolbar), but I don't have time until I finish the blogdown book.


    Update: https://stackoverflow.com/q/45360998/559676

  2. cderv commented on Mar 18, 2021

    @cderv
    Collaborator
  3. added
    feature
    on Mar 18, 2021
  4. cderv commented on Mar 24, 2021

    @cderv
    Collaborator

    Duplicate of #764

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

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions