0

I have tags such as this interspersed in one of my bookdown chapters:

<audio class="audio-specs" controls src="my.mp3"></audio>

When I run a regular RMarkdown html report the auto players are inserted at the right spots. When I run bookdown all of them float to the first page.

Suggestions for keeping them where they belong are welcomed.

Update: Some of my tags may be too close to section headers and so are included in the table of contents. I can solve this problem but I'm encountering several other html customizations that seem to not work with bookdown.

Yihui Xie
  • 28,913
  • 23
  • 193
  • 419
Frank Harrell
  • 1,954
  • 2
  • 18
  • 36
  • 1
    I don't know where you inserted this tag, but per documentation at https://bookdown.org/yihui/bookdown/usage.html, you should not insert anything before chapter headers. If you inserted ` – Yihui Xie Mar 21 '20 at 19:27
  • I'm finding that for adding a number of `html` customizations the result is better if I use the regular rendering to `html` output using output method `bookdown::html_document2` rather than `Build`. – Frank Harrell Mar 22 '20 at 11:15

0 Answers0