Syntax Reference
-
The first line should begin with % and provide
the story's title.
% The Bus That Couldn't Slow down
-
The second line should begin with % and provide
the story's author.
% Homer Simpson
-
A new chapter begins with a # followed by text.
It ends with a #{, a unique identifier for the
chapter, and }. In the following example, the
unique identifier is start.
# You are on a bus {#start}
-
A chapter can have any number of lines of text. Separate paragraphs with an
empty line between them. Markdown syntax is allowed.
The bus is going 100 miles per hour. You can't slow it down or it will explode. You think you've seen this in a movie before somewhere. Either way, this seems not great.
-
A chapter has one or more choices at the end. They may link to other
chapters or to start over.
A choice starts with a dash (-) followed by a space and then the choice text in square brackets ([ and ]). The destination chapter id for the choice is in parentheses and preceeded by a #. The destination is the unique identifier for the chapter. There are two choices in the example below. The last choice below would show the text Jump out the window and link to the chapter with the unique identifier jump-out-window.- [Hit the breaks](#breaks) - [Jump out the window](#jump-out-window)
% The Bus That Couldn't Slow down % Homer Simpson # You are on a bus {#start} The bus is going 100 miles per hour. You can't slow it down or it will explode. You think you've seen this in a movie before somewhere. Either way, this seems not great. - [Hit the breaks and find out if you are explosion-proof](#breaks) - [Jump out the window](#jump-out-window) # You hit the breaks {#breaks} Awh, beans. The bus explodes. You are dead. I guess you weren't explosion-proof after all. The end. - [Start over](#start) # You jump out the window {#jump-out-window} You jump out the window and land in a pile of hay that fell off the back of a truck. What are the odds? You are safe and sound. The end. - [Start over](#start)