This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 980f68797307d28f0541868c740974cb2eeb1209
tree 99d52b4d6e9e1e8ce3d6aa804cb7cad030048ed3
parent 7b91140ef8b59eacd18eb1099b9e2fb72e1e6b24
tree 99d52b4d6e9e1e8ce3d6aa804cb7cad030048ed3
parent 7b91140ef8b59eacd18eb1099b9e2fb72e1e6b24
wmd /
| name | age | message | |
|---|---|---|---|
| |
Uservoice bugs.txt | Mon Mar 02 13:15:56 -0800 2009 | |
| |
images/ | Sun Jan 25 02:08:39 -0800 2009 | |
| |
jQuery/ | Mon Jan 12 02:21:25 -0800 2009 | |
| |
markdown 1.0.1/ | Sat Jan 03 12:52:57 -0800 2009 | |
| |
mit license.txt | Tue Feb 03 15:12:39 -0800 2009 | |
| |
pasteme.txt | Fri Jan 02 14:30:52 -0800 2009 | |
| |
readme.txt | Mon Feb 02 10:01:34 -0800 2009 | |
| |
showdown.js | Wed Feb 04 00:38:16 -0800 2009 | |
| |
wmd-test.html | Sun Feb 22 22:56:41 -0800 2009 | |
| |
wmd.css | Tue Feb 17 23:16:48 -0800 2009 | |
| |
wmd.js | Wed Feb 25 04:18:09 -0800 2009 |
readme.txt
** NOTE **
*******************************************************************************
This is a branch of the original WMD for Stackoverflow. A LOT of functionality
was removed as we did not need it. Most of the customization and options are
NOT in this version. If you want that functionality, you'll have to wait for
the next version (WMD 3).
*******************************************************************************
*******************************************************************************
Installing WMD
--------------
1. Add the CSS stylesheet to your head and/or merge the styles in with your
own stylesheet. All the styles I've added start with wmd- so there
are unlikely to be conflicts with your CSS classes.
<link rel="stylesheet" type="text/css" href="wmd.css" />
2. Add showdown.js (the markdown converter) to your head:
<script type="text/javascript" src="showdown.js"></script>
3. Add wmd.js right before your closing body tag:
<script type="text/javascript" src="wmd/wmd.js"></script>
4. Put the wmd-buttons.png someplace. You can modify this image if you don't
like the visual look. The .psd file contains easily-edited layers. Changing
the size of the buttons might cause problems where you have to edit the wmd
source. Please message me on github (link below) if this sucks for you so
I can improve support for various button sizes.
5. Pop open the source to change the variables at the top that require
changing (image paths, dialogs, etc.).
6. I'd minify the source. It'll get a LOT smaller. Eventually I'll provide a
minified version.
You need to create:
-------------------
0. For all of these, I use the CSS class "wmd-panel" but this isn't required.
The ids given below are very important as the wmd code uses them to find
the panels.
1. A button bar div
This will contain WMD's buttons. id is "wmd-button-bar".
2. An input textarea
This is where you'll enter markdown. id is "wmd-input".
3. A preview div (optional but recommended)
This will give you a live preview of your markdown. id is "wmd-preview".
4. An HTML preview div (optional and you probably don't need this)
This will show the raw HTML that the markdown will produce. Not so
useful for most web pages but useful for troubleshooting WMD :) id
is "wmd-output".
Example:
<!DOCTYPE html>
<html>
<head>
<title>Test WMD Page</title>
<link rel="stylesheet" type="text/css" href="wmd.css" />
<script type="text/javascript" src="showdown.js"></script>
</head>
<body>
<div id="wmd-button-bar" class="wmd-panel"></div>
<br/>
<textarea id="wmd-input" class="wmd-panel"></textarea>
<br/>
<div id="wmd-preview" class="wmd-panel"></div>
<br/>
<div id="wmd-output" class="wmd-panel"></div>
<script type="text/javascript" src="wmd.js"></script>
</body>
</html>
Support
-------
If you're having trouble getting WMD up and running, feel free to
message me on github: http://github.com/derobins







