Updates quarto/index.qmd for EPUB-safe XHTML (self-closing tags, explicit audio controls) and restricts interactive HTML to html:js.
EPUB/XHTML compliance
Self-close img and source tags in quarto/index.qmd.
Use explicit controls="controls" on <audio>.
Rendering/visibility
Change content-visible condition from when-format="html" to when-format="html:js" for the abstract block to prevent interactive HTML from appearing in non-HTML outputs.
Written by Cursor Bugbot for commit 4dd4e136a3. This will update automatically on new commits. Configure here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/harvard-edge/cs249r_book/pull/1017
**Author:** [@profvjreddi](https://github.com/profvjreddi)
**Created:** 11/1/2025
**Status:** ✅ Merged
**Merged:** 11/1/2025
**Merged by:** [@profvjreddi](https://github.com/profvjreddi)
**Base:** `dev` ← **Head:** `issue-1014-ebook-in-epub-format-fails-to-load-displays-errors`
---
### 📝 Commits (1)
- [`4dd4e13`](https://github.com/harvard-edge/cs249r_book/commit/4dd4e136a35e577cdefad0618d1fea043b015ca3) fix(epub): ensure XHTML compliance in index.qmd
### 📊 Changes
**1 file changed** (+4 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `quarto/index.qmd` (+4 -4)
</details>
### 📄 Description
## Summary
Fixes EPUB rendering errors caused by non-XHTML compliant HTML tags in index.qmd.
## Changes
- Self-closed img tag for XHTML compliance
- Added explicit value for controls attribute on audio element
- Self-closed source tag for XHTML compliance
- Changed content-visible condition from html to html:js to prevent HTML-specific interactive content from appearing in EPUB output
## Testing
- ✅ EPUB builds successfully without XHTML parsing errors
- ✅ Pre-commit hooks pass
Closes #1014
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Updates `quarto/index.qmd` for EPUB-safe XHTML (self-closing tags, explicit audio controls) and restricts interactive HTML to `html:js`.
>
> - **EPUB/XHTML compliance**
> - Self-close `img` and `source` tags in `quarto/index.qmd`.
> - Use explicit `controls="controls"` on `<audio>`.
> - **Rendering/visibility**
> - Change `content-visible` condition from `when-format="html"` to `when-format="html:js"` for the abstract block to prevent interactive HTML from appearing in non-HTML outputs.
>
> <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 4dd4e136a35e577cdefad0618d1fea043b015ca3. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1017
Author: @profvjreddi
Created: 11/1/2025
Status: ✅ Merged
Merged: 11/1/2025
Merged by: @profvjreddi
Base:
dev← Head:issue-1014-ebook-in-epub-format-fails-to-load-displays-errors📝 Commits (1)
4dd4e13fix(epub): ensure XHTML compliance in index.qmd📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
quarto/index.qmd(+4 -4)📄 Description
Summary
Fixes EPUB rendering errors caused by non-XHTML compliant HTML tags in index.qmd.
Changes
Testing
Closes #1014
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.