Scratch - A Simple Text Formatting Processor

Demonstration

This page provides a way to try out the Scratch Processing Language for yourself. Simply enter some scratch markup in the box below and press convert and you will be shown the result as raw html as well as a preview of how the markup looks.

Load Test Suite

Preview

Scratch Test Suite

Inline elements and attributes are tested in each block level test case. This
paragraph should be encased in <p> tags.

Block Elements

Headers

h0. fail, invalid number

pass

pass

pass

pass

pass
pass

h7. fail, invalid number

text
h4. fail, not the start of a block

pass

pass pass
pass pass pass pass pass
pass pass pass pass pass
pass pass pass pass pass

fail fail fail fail fail fail

text
h4{color: blue} fail, not start of block

pass pass pass

fail h4. fail not start of block

Blockquotes

text
bq. fail, not start of block

bq fail, no colon delimiter

fail bq. fail not start of block

bq cyan}. pass

Paragraphs

pass

pass

pass

text
p. fail, not start of block

pass

p{color: red} fail

p fail

Footnotes

Footnotes will appear at the end of the test suite

Pass1

Fail[abc]

text text text Pass2 text text

Fail[1
]

fn2 pass

fn4 fail, no comma delimiter

Lists

  1. pass
  2. pass
  3. pass
* fail (current version doesn't pick this up) # fail (current version doesn't pick this up) * fail (current version doesn't pick this up) ** fail (current version doesn't pick this up) ** fail (current version doesn't pick this up) ** fail (current version doesn't pick this up) * fail *** fail * fail

Tables

asimpletablerow
AndAnothertablerow
Atableheaderrow
Asimpletablerow

Tables with attributes:

thisisaheader
this isarow
thisisanotherrow

Entities

“Some Proper Quotes”

em — dash

Markup

test # test # test* test

test # test # test * test

pass

pass

Code



untouched *code* not-parsed at ??all??

$test = new tester("test", 'test');

Links and Images

linktext linktext

linktext

linktext

linktext

title logo

title logo

this is a test: test? ™

test … another test — test … © ™ (½) ⇔ ⇒ ←

this is testing some “big quotes” and some ‘little quotes’ test

1 pass
3 pass