Paste this text into the "Add a New Format" section: https://www.maximumverbosity.net/twine/Entweedle/format.js
Step 2 of 2: Create a simple dialogue parser
Now that the twine data is in a clean format we can easily write a dialogue parser for Unity. I have included my solution below which includes two files. DialogueObject.cs defines the Node, Response, and Dialogue objects which use OOP to represent the story's text and links between nodes. DialogueController.cs defines methods to direct the dialogue system as your game runs, it also has a public event that your display classes can latch onto.
Now you can create your own user interface to show a branching narrative in your game. I thought it would be beneficial to show you my implementation for the game 22nd Street Traffick (playable here: mrventures.itch.io/22nd-street-traffick )