Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (34 sloc) 1.47 KB
fixture
fixtures/path.js

Formatting examples

Note: this page is a fully executable spec for the options it demonstrates. If you are reading this on GitHub, it will render the page nicely and hide all the technical details, so check out the raw markdown to see the actual test configuration.

Appraise allows you to describe complex example structures in several ways that are nice and readable. Similar to how Github uses the first word of a fenced code block to signal the language, Appraise uses the same indicator for the format. This means that your markdown pages will render nicely in when viewed through Github.

YAML

Start with ~~~yaml, such as in the example below:

width: 100
height: 100
path: M10,10L90,90M90,10L10,90
color: blue 

path with yaml

JSON

Start with ~~~json, such as in the example below:

{
  "width": 100,
  "height": 100,
  "path": "M10,10L90,90M90,10L10,90",
  "color": "green"
}

path with json

Plain text

If no special format is set, the text of the example is passed to your fixture

M10,10L90,90M90,10L10,90

path with text

Adding more formats

To add more formats, submit a patch to util/parse.js.

You can’t perform that action at this time.