Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LiaScript/LiaScript-Exporter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a8d596b
Choose a base ref
...
head repository: LiaScript/LiaScript-Exporter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ce55e2d
Choose a head ref
  • 3 commits
  • 23 files changed
  • 2 contributors

Commits on Nov 20, 2026

  1. feat(epub): --epub-form, quizzes and surveys as a form in the book

    Readers that run JavaScript (Apple Books, Thorium, …) get the same form as
    --pdf-form: check with trial count, solution, submit and feedback in
    LiaScript's texts; every other reader, Kindle among them, keeps the
    worksheet of boxes, circles and lines.
    
    markFields gets a data mode: a data-liaex attribute on each field, which
    quizPaper carries on to the paper mark, and a .liaex-quiz box per quiz with
    its spot, solution, language and LiaScript's button labels. A runtime at the
    end of each chapter with a quiz turns the marks back into fields and the box
    into buttons, and runs the PDF form's own scripts (now form-scripts.ts)
    through an imitation of Acrobat's getField on the HTML fields. Chapters with
    it are declared scripted.
    
    The ePub library leaves < and & raw in attributes and scripts, which XHTML
    does not take: the marks write them as \u escapes, the runtime goes in as
    base64. CLI and web app alike; epubcheck reports nothing for the book.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    andre-dietrich and claude committed Nov 20, 2026
    Configuration menu
    Copy the full SHA
    40f2ab7 View commit details
    Browse the repository at this point in the history
  2. fix(epub): valid books for courses with media, templates and read-aloud

    The CLI left remote audio, video and embedded pages in the book, inside the
    link LiaScript wraps them in: invalid there, undeclared, and an embedded page
    is not allowed in a book at all. Each now becomes a line that names it, a
    link if it is remote, a YouTube video under its thumbnail, as the web app
    does. Hidden elements go (the library writes a bare hidden attribute, which
    is no XML: a fatal error in a chapter with the ChemLab template), a div in a
    span becomes a span (the read-aloud effect), a stray figcaption moves to its
    figure, and inline SVG gets its namespace and its manifest property.
    
    epubcheck: the sample course from 1 fatal and 14 errors to none.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    andre-dietrich and claude committed Nov 20, 2026
    Configuration menu
    Copy the full SHA
    7438494 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2026

  1. Version bump to 3.8.0

    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    andre-dietrich and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    ce55e2d View commit details
    Browse the repository at this point in the history
Loading