Switch to unified view

a/Allura/allura/templates/markdown_syntax.html b/Allura/allura/templates/markdown_syntax.html
...
...
3
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Markdown Syntax{% endblock %}
3
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Markdown Syntax{% endblock %}
4
4
5
{% block header %}Markdown Syntax{% endblock %}
5
{% block header %}Markdown Syntax{% endblock %}
6
6
7
{% block content %}
7
{% block content %}
8
<h1>Quick Markdown Syntax Guide</h1>
8
{{lib.markdown_syntax()}}
9
<p>The Allura code uses markdown syntax everywhere to allow you to create rich<br>text markup, and extends markdown in several ways to allow for quick linking<br>to other artifacts in your project. </p><p>Markdown was created with one goal in mind: </p>
10
<blockquote>
11
<p>Markdown is intended to be as easy-to-read and easy-to-write as is feasible.</p>
12
</blockquote>
13
<p>But the most important goal was to make it readable in its raw plain text <br>format. </p><h2>Links</h2>
14
15
<div class="codehilite"><pre>For a URL or email, just write it like this:
16
17
&lt;http://someurl&gt;
18
19
&lt;somebbob@example.com&gt;
20
21
To use text for the link, write it [like this](http://someurl).
22
23
You can add a *title* (which shows up under the cursor),
24
[like this](http://someurl "this title shows up when you hover").
25
</pre></div>
26
<h2>Reference Links</h2>
27
<div class="codehilite"><pre>You can also put the [link URL][1] below the current paragraph like [this][2].
28
29
   [1]: http://url
30
   [2]: http://another.url "A funky title"
31
32
Here the text "link URL" gets linked to "http://url", and the lines showing
33
"[1]: http://url" won't show anything.
34
35
Or you can use a [shortcut][] reference, which links the text "shortcut"
36
to the link named "[shortcut]" on the next paragraph.
37
38
   [shortcut]: http://goes/with/the/link/name/text
39
</pre></div>
40
<h2>Text</h2>
41
<div class="codehilite"><pre>Use * or _ to emphasize things:
42
43
*this is in italic*  and _so is this_
44
45
**this is in bold**  and __so is this__
46
47
***this is bold and italic***  and ___so is this___
48
49
Just write paragraphs like in a text file and they will display how you would
50
expect.  A blank line separates paragraphs.
51
52
So this is a new paragraph. But any text on adjacent lines
53
will all end up
54
in the same paragraph.
55
</pre></div>
56
57
<h2>Blockquotes</h2>
58
<div class="codehilite"><pre>&gt; Use the &gt; character in front of a line, *just like in email*.
59
&gt; Use it if you're quoting a person, a song or whatever.
60
61
&gt; You can use *italic* or lists inside them also.
62
And just like with other paragraphs,
63
all of these lines are still
64
part of the blockquote, even without the &gt; character in front.
65
66
To end the blockquote, just put a blank line before the following paragraph.
67
</pre></div>
68
<h2>Preformatted Text</h2>
69
<div class="codehilite"><pre>If you want some text to show up exactly as you write it, without Markdown
70
doing anything to it, just indent every line by at least 4 spaces (or 1 tab).
71
72
    This line won't *have any markdown* formatting applied.
73
    I can even write &lt;b&gt;HTML&lt;/b&gt; and it will show up as text.
74
    This is great for showing program source code, or HTML or even Markdown.
75
    &lt;b&gt;this won't show up as HTML&lt;/b&gt; but exactly &lt;i&gt;as you see it in
76
    this text file&lt;/i&gt;.
77
78
As a shortcut you can use backquotes to do the same thing while inside
79
a normal pargraph.  `This won't be *italic* or **bold** at all.`
80
81
</pre></div>
82
<h2>Lists</h2>
83
<div class="codehilite"><pre>* an asterisk starts an unordered list
84
* and this is another item in the list
85
+ or you can also use the + character
86
 or the - character
87
88
To start an ordered list, write this:
89
90
1. this starts a list *with* numbers
91
+  this will show as number "2"
92
*  this will show as number "3."
93
9. any number, +, -, or * will keep the list going.
94
    * just indent by 4 spaces (or tab) to make a sub-list
95
        1. keep indenting for more sub lists
96
    * here i'm back to the second level
97
</pre></div>
98
<h2>Headers</h2>
99
<div class="codehilite"><pre>This is a huge header
100
==================
101
102
this is a smaller header
103
104
105
Just put 1 or more dashes or equals signs (--- or ===) below the title.
106
</pre></div>
107
<h2>Horizontal Rule</h2>
108
<div class="codehilite"><pre>just put three or more *'s or -'s on a line:
109
110
111
112
or you can use single spaces between then, like this:
113
114
* * *
115
116
or
117
118
 - - - - - -
119
120
Make sure you have a blank line above the dashes, though, or else:
121
122
you will get a header
123
124
</pre></div>
125
<h2>Images</h2>
126
<div class="codehilite"><pre>To include an image, just put a "!" in front of a text link:
127
128
![alternate text](http://someurl/image.gif)
129
130
The "alternate text" will show up if the browser can't load the image.
131
132
You can also use a title if you want, like this:
133
134
![tiny arrow](http://greg.vario.us/img/extlink.png "tiny arrow")
135
</pre></div>
136
137
<h2>Escapes</h2>
138
<p>What if you want to just show asterisks, not italics?</p>
139
<div class="codehilite"><pre>* this shows up in italics: *a happy day*
140
* this shows the asterisks: \*a happy day\*
141
</pre></div>
142
<p>The backslashes will disappear and leave the asterisks.</p>
143
<p>You can do the same with any of the characters that have a special meaning<br>for Markdown.</p><h2>More Headers</h2>
144
<div class="codehilite"><pre>More ways of doing headers:
145
146
# this is a huge header #
147
## this is a smaller header ##
148
### this is even smaller ###
149
#### more small ####
150
##### even smaller #####
151
###### smallest still: `&lt;h6&gt;` header
152
</pre></div>
153
<p>You can use up to 6 <code>#</code> characters at the beginning of the line.<br>
154
155
</p>
156
<h2>HTML</h2>
157
<p>Don't worry about special characters which need to be escaped in html. </p>
158
<p>You can write an ampersand &amp; a less-than sign, and they show up expected:  3 &lt; 4.</p>
159
<h2>Thanks</h2>
160
<p>Thanks to John Gruber and Aaron Swartz for creating Markdown.</p>
161
<p>
162
This page is based on some examples from Greg Schueler, <a href="mailto:greg@vario.us">greg@vario.us</a>
163
</p>
164
{% endblock %}
9
{% endblock %}