You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to use asciidoctor-epub3, but it's based on the ruby project so it might be a pain to integrate it properly. I would either have to convert it to JS using Opal, or re-implement all the extensions in Ruby.
So it might be less trouble to implement some more extensions/converters/templates to build an EPUB of my own.
See mrombout/Spiner#76 for some ideas on how to generate an EPUB through the web. The epub-gen library can generate EPUBs on Node.js and the fork epub-gen-memory can do so both on Node.js and the browser.
We can use the html5 converter that comes with Asciidoctor to do most of the heavy lifting. Then we need to do the following:
Find a good hook to produce a separate .html file for each [.segment].
Rewrite all links to link the those .html pages.
Feed in the right information and metata into epub-gen-memory.
It might be nice to also support exporting the gamebook to EPUB. In order to achieve this we would need to change some things so that:
turn:<id>[]
andchoice:<id>[]
links should link to those pages.The text was updated successfully, but these errors were encountered: