johnmuhl / radiant-markdown-extension

[DEPRECATED] A clone of the Radiant Markdown extension using RDiscount.

radiant-markdown-extension / markdown.html
100644 123 lines (118 sloc) 3.491 kb
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<p>Many people prefer <a href="http://daringfireball.net/projects/markdown/" target="_blank">Markdown</a>
  over standard HTML because it is less verbose. Unlike Textile, Markdown
  doesn&#8217;t try to replicate all of the features implemented by regular
  HTML, instead it encourages the use of inline HTML. Markdown is very similar
  to the formatting used in a standard plain-text e-mail. This filter also uses
  <a href="http://daringfireball.net/projects/smartypants/" target="_blank">SmartyPants</a>
  to curl quotes and insert correct punctuation.</p>
  
<table id="filter-reference-table" border="0" cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <th>To see this:</th>
      <th>Type this:</th>
    <tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>bold</strong></td>
      <td><pre>**bold**</pre></td>
    </tr>
    <tr>
      <td><em>italics</em></td>
      <td><pre>_italics_</pre></td>
    </tr>
    <tr>
      <td><del>strikethrough</del></td>
      <td><pre>&lt;del&gt;strikethrough&lt;/del&gt;</pre></td>
    </tr>
    <tr>
      <td>x<sup>superscript</sup></td>
      <td><pre>x&lt;sup&gt;superscript&lt;/sup&gt;</pre></td>
    </tr>
    <tr>
      <td>a<sub>subscript</sub></td>
      <td><pre>a&lt;sub&gt;subscript&lt;/sub&gt;</pre></td>
    </tr>
    <tr>
      <td><code>code phrase</code></td>
      <td><pre>`code phrase`</pre></td>
    </tr>
    <tr>
      <td>link to <a href="http://radiantcms.org">Radiant CMS</a></td>
      <td><pre>link to [Radiant CMS](http://radiantcms.org)</pre></td>
    </tr>
    <tr>
      <td><acronym title="Just Another Acronym">JAA</acronym></td>
      <td><pre>&lt;acronym title="Just Another Acronym"&gt;JAA&lt;/acronym&gt;</td>
    </tr>
    <tr>
      <td><span style="color:red">Red Text</span></td>
      <td><pre>&lt;span style="color:red"&gt;Red Text&lt;/span&gt;</pre></td>
    </tr>
    <tr>
      <td>
        <p>A bulleted list:</p>
        <ul>
          <li>item one</li>
          <li>item two</li>
          <li>item three</li>
        </ul>
      </td>
      <td>
<pre>A bulleted list:
* item one
* item two
* item three</pre>
      </td>
    </tr>
    <tr>
      <td>
        <p>A numbered list:</p>
        <ol>
          <li>item one</li>
          <li>item two</li>
          <li>item three</li>
        </ol>
      </td>
      <td>
<pre>A numbered list:
1. item one
2. item two
3. item three</pre>
      </td>
    </tr>
    <tr>
      <td>
        <h1>Heading 1</h1>
        <h2>Heading 2</h2>
        <h3>Heading 3</h3>
        <h4>Heading 4</h4>
      </td>
      <td>
<pre>Heading 1
---------
 
Heading 2
=========
 
### Heading 3
 
#### Heading 4</pre>
      </td>
    </tr>
    <tr>
      <td><blockquote>Roses are red, violets are blue, Markdown is nice, and so are you!</blockquote></td>
      <td>
<pre>&gt; Roses are red,
&gt; violets are blue,
&gt; Markdown is nice,
&gt; and so are you!</pre>
    </tr>
    <tr>
      <td><img src="http://radiantcms.org/button.png" alt="" /></td>
      <td><pre>![alt text](http://radiantcms.org/button.png)</pre></td>
    </tr>
  </tbody>
</table>
 
<p>Advanced users may want to play around with the
  <a href="http://daringfireball.net/projects/markdown/dingus/" target="_blank">Markdown
  Dingus</a> or review the
  <a href="http://daringfireball.net/projects/markdown/syntax/" target="_blank">official Markdown
  Reference</a>.</p>