Skip to content

Commit 5dbfaa9

Browse files
taylorarndtCopilot
andcommitted
fix: add --standalone to pandoc so file2brl gets valid HTML
Without --standalone pandoc concatenates multiple HTML documents; file2brl needs a single well-formed document to parse. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e97ba9a commit 5dbfaa9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-epub.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
continue-on-error: true
4242
run: |
4343
mkdir -p epub/brf
44-
# Extract HTML from EPUB, then translate to BRF using liblouis (pure text→braille, zero TTS)
45-
pandoc epub/git-going-with-github.epub -f epub -t html5 -o /tmp/book.html
44+
# --standalone produces a single well-formed HTML doc; file2brl requires valid XML
45+
pandoc epub/git-going-with-github.epub -f epub -t html --standalone -o /tmp/book.html
4646
file2brl /tmp/book.html epub/brf/git-going-with-github.brf || echo "BRF conversion failed"
4747
ls -lh epub/brf/ || echo "No BRF output produced"
4848

0 commit comments

Comments
 (0)