Skip to content

brilliantorg/backpacker-below

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camperdown Markup Language

Camperdown is a markup language for non-hypertext branching storytelling. It tries to steal good ideas about branching-paths storytelling from the inkle language, good ideas about markup languages from Idyll, and some syntax from elm.

Basic markup

Camperdown can be configured in different ways, but by default it supports has italic, bold, and bold italic text.

  • Lists are also

  • a thing you can do

    and list elements can contain multiple paragraphs.

Blockquotes exist too.

The tooth fairy

Camperdown can be configured in different ways, but by default
it supports has _italic_, **bold**, and _**bold italic**_ text.

! list >>
  : Lists are also
  : a thing you can do

    and list elements can contain multiple paragraphs.

! quote >>
    Blockquotes exist too.
 
    --- _The tooth fairy_

Camperdown's syntax is a little bit more persnickety and intrusive than markdown. The goal is to stay easy-to-learn and easy-to-read, but push the balance a little further towards it being hard to accidentally write things that get recognized as markup, and a lot farther torwards being configurable to different purposes.

Line commands like !list and !quote organize text into indented sections. This is meant to be configurable: different uses of Camperdown can have different sets of commands. (A lot more than just commands are configurable, including the annotations for bold and italics, and replacements like making --- into an M-dash, but it's easier to introduce Camperdown by presenting some reasoanble defaults.)

A line command must have, as the first non-whitespace character, a marker. The examples above show !, which is the command marker, and :, which is the item marker.

About

Unstable alpha versions of the Camperdown markup language. Intended for release as brilliantorg/camperdown once we're ready for a v1.0.0 release.

Resources

License

Stars

Watchers

Forks

Contributors

Languages