Skip to content

Books: Table of Content picks up code-block comments as chapter titles #3390

@HenrikBengtsson

Description

@HenrikBengtsson

Bug description

Using

```{r, echo = FALSE}
# INITIALIZE CODE
hello <- 42
```

# Summary

In summary, this book has no content whatsoever.

in a Quarto Book chapter results in INITIALIZE CODE becoming the chapter title used in the table of content, although the Summary is still the title on the page. See below screenshot.

image

Session info

Ubuntu 20.04 with:

$ quarto --version
1.3.11

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    astissues related to AST processingbooksbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions