Okay, I’ve managed to hack together a truly unholy approach. I have a hacks.js
loaded after everything in Parchment. Using jQuery it finds certain text strings and replaces them as the game plays. This is likely neither performant nor robust. May XYZZY have mercy on my soul.
For example MYWEBSITE
will be replaced with the clickable <a href="https://brettwitty.net">My site</a>
. You can also clean up things like <hr/>
being mangled into many hyphens, and then unmangle them into <hr/>
again.
While it doesn’t fix the lovely aHref
click-to-run-command helpers that I used for a puzzle, nor any of the other nice HTML, it might allow me to finish my game without making users jump through hoops for a little link. I need at least links to perform some multi-format acrobatics.
If I could give everyone the beautiful QTads experience, via the browser, I would do it in a heartbeat.
I’ve created a gist on GitHub to show how this abomination works.