Hey there, I’m a screenwriter attempting to implement the fountain markup language in Twine. It would drastically help in the efficiency of the teams writing process, as some of the writers I’m working with are very code allergic, and I’m honestly pretty noob myself. I’ve found some javascript that should do most of the job here: GitHub - mattdaly/Fountain.js: A JavaScript parser for the screenplay format Fountain
I’ve tried using this on PassageInit and PassageReady passages, as well as dropping it directly into the Story Javascript to no avail. I’m a bit over my head and not sure what I’m doing wrong, would love any guidance you could offer.
Thank you both so much for your help on this! Indeed it is sort of doing something now… though it seems like I’ve lost the ability to use SugarCube markup… which kind of makes sense now that I think about it. If I format the links with raw html it still seems to work
Good catch. I should have looked more closely at that.
Assuming that you mean the link markup ([[…]]), looking at the Fountain.js code it’s the “note” markup that’s overriding it. If you don’t feel you need the note markup, you could always disable it.
EDIT: There’s also the possibility of turning it into a macro instead—e.g., <<fountain>>…<</fountain>>—so you only Fountain the bits you want, if that seems like something you could make work.