forked from ChiperSoft/wmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.md.old
64 lines (50 loc) · 2.59 KB
/
Readme.md.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
WMD: The Wysiwym Markdown Editor
================================
Introduction
------------
WMD is a JavaScript based code editor for the [Markdown](http://daringfireball.net/projects/markdown/) formatting language. It includes a Markdown interpreter – Showdown – for live preview and output of the Markdown generated HTML.
This is a fork of WMD for ChiperSoft Systems & NFY Interactive designed for use in CMS engines. It was forked from the [Open Library fork](http://github.com/openlibrary/wmd) of WMD, which was in turn forked from the [Stackoverflow fork](http://github.com/derobins/wmd).
Major Changes from Open Library Revision
-------------
* Extended showdown to support a series of Markdown extensions:
- Link urls that start with ! are opened in a new window
- Text wrapped with double carets is made superscript (ex: `^^this text is superscripted^^`)
- Text wrapped with double commas is made subscript (ex: `,,this text is subscripted,,`)
- Text wrapped with double tildes is made strikethrough (ex: `~~this text is struck~~`)
- (c), (r), (tm), -- and ... are converted into their respective html entities.
- Lines prefixed with "->" are right aligned. Lines also postfixed with "<-" are center aligned.
* Several ascii characters that may produce encoding issues (such as curled quotes) are converted into entities
* Removed top level frame pollution, forcing WMD to run only in its own document.
* Removed the automatic conversion from Markdown to HTML when the form is submitted.
* Removed the automatic addition of http:// to image urls, preventing the entry of relative addresses.
* Numerous bug fixes to both WMD and Showdown
How to use
----------
<html>
<head>
<title>WMD Example</title>
<link rel="stylesheet" type="text/css" href="wmd.css"/>
<script type="text/javascript" src="wmd.js"></script>
<script type="text/javascript" src="showdown.js"></script>
</head>
<body>
<h1>WMD Example</h1>
<div>
<div id="notes-button-bar"></div>
<textarea id="notes" name="copy"></textarea>
<div id="notes-preview"></div>
<input type="text" name="copy_html" value="" id="copy_html">
</div>
<script type="text/javascript">
setup_wmd({
input: "notes",
button_bar: "notes-button-bar",
preview: "notes-preview",
output: "copy_html"
});
</script>
</body>
</html>
License
-------
WMD Editor is licensed under [MIT License](http://github.com/chipersoft/wmd/raw/master/License.txt).