[PR #1017] [MERGED] fix(epub): ensure XHTML compliance in index.qmd #6282

Closed
opened 2026-04-21 22:12:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: issue-1014-ebook-in-epub-format-fails-to-load-displays-errors


📝 Commits (1)

  • 4dd4e13 fix(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

  • 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


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.

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>
GiteaMirror added the pull-request label 2026-04-21 22:12:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#6282