Skip to content

Commit

Permalink
Added images, HTML test file, pastable markup
Browse files Browse the repository at this point in the history
My other .js files are the originals so that's a step back but I'll remerge those shortly.
  • Loading branch information
derobins committed Jan 2, 2009
1 parent dafdc2c commit 918930b
Show file tree
Hide file tree
Showing 20 changed files with 160 additions and 0 deletions.
Binary file added images/bg-fill.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blockquote.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bold.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/code.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/h1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/img.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/italic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/link.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ol.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/redo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/separator.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ul.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/undo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/wmd-on.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/wmd.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 136 additions & 0 deletions pasteme.txt
@@ -0,0 +1,136 @@
This is some regular text.

Here is some text with stuff that requires special handling: ( ) [ ] { } /\ ~

What if I put in some internal markup? ~T ~K2K

This is code and preformatted text. /* comment*/ <b>Not bold</b>

Here is an `inline code block` created with backticks.

This text uses a line
break

Some text in *italics* and some _more text in italics._

Some **bold** text and __some more.__

Both ***bold and italic*** and ___again___.

Here is a standard hyperlink <a href="http://stackoverflow.com/">Stack Overflow</a>

Inline link to [Google](http://www.google.com/)
Reference-style link to [Google][1]
Here's a more readable reference link to [Google][google]

Here's an inline [link](http://www.google.com/ "Google") with a tooltip in quotes.
A reference [link][parens] in parentheses.
A reference [link][quotes] in quotes.

Automatically converted link: http://www.stackoverflow.com
A link that is forced: <http://www.stackoverflow.com>

Level 1 Header can use any number of equal signs
=

Level 2 Header can use any number of dashes
-

# You can also use #
## Hash marks to create header levels
### The closing hash marks are optional ###

Horizontal rules use 3 or more hyphens, asterisks or underscores

---
text
***
text
___
text

breaking up the line markers also works
* * *
A bulleted list:

- Use a dash
+ Or a plus sign
* Or an asterisk

A numbered list:

1. Numbered lists are easy
2. The numbers are automatically tracked
7. So this will be number 3

Double-spaced list:

- You can make a spaced-out list wrapped in `<p>` tags

- By putting a space in between the lines

Nested Lists:

1. Lists in a list item:
- Indent four spaces
* Per list level

2. You can do multiple paragraphs if you skip a line.

And indent four spaces.

Three works, too but that can be confusing.

3. To put blockquotes in a list item

> Skip a line and indent the starting '>' four spaces.

4. To put preformatted code in a list item

Skip a line and indent <b>eight</b> spaces.

Simple Blockquotes

>Just add > to the start of the line.
>And you'll get a blockquote.

Blockquote paragraphs

> Putting a >
>
> on blank lines is optional

> it all looks the same to the markdown editor.

Blockquote nesting

>You can nest
>>blockquotes to any
>>>level you want

Lists in blockquotes

> - A list in a blockquote
> - Have to have a > and a space before the bullet marker
> * And you can do nested lists.

Code and quotes

> Just indent the text four spaces after the >

Images

Inline image: ![Alt text goes here](http://w3.org/Icons/valid-xhtml10)
Reference image with tooltip: ![valid XHTML][checkmark]
You can't do this ![checkmark]
but you can do this ![checkmark][] where the ref name will be the alt text.

Regular image links also work, including scaling:
<img src="http://w3.org/Icons/valid-xhtml10" width="100" height="25">


[1]: http://www.google.com
[Google]: http://www.google.com
[parens]: http://www.google.com (Click to go to Google)
[quotes]: http://www.google.com "Click for Google"
[checkmark]: http://w3.org/Icons/valid-xhtml10 "Image tooltip"
7 changes: 7 additions & 0 deletions wmd-test.css
@@ -0,0 +1,7 @@
.pretty { width:50%; }

textarea { width:50%; height:200px; }

.wmd-preview { background-color:#66CCFF; }

.wmd-output { background-color:#FFCCFF; }
17 changes: 17 additions & 0 deletions wmd-test.html
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>

<head>
<title>Test WMD Page</title>
<link rel="stylesheet" type="text/css" href="wmd-test.css" />
</head>

<body>
<textarea class="edit pretty"></textarea>
<br/>
<div class="wmd-preview pretty"></div>
<br/>
<div class="wmd-output pretty"></div>
<script type="text/javascript" src="wmd.js"></script>
</body>
</html>

0 comments on commit 918930b

Please sign in to comment.