/usr/share/gitit/data/markup.Org is in libghc-gitit-data 0.12.1.1+dfsg-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | * Markdown
This wiki's pages are written in
[[http://johnmacfarlane.net/pandoc][pandoc]]'s extended form of
[[http://daringfireball.net/projects/markdown][markdown]]. If you're not
familiar with markdown, you should start by looking at the
[[http://daringfireball.net/projects/markdown/basics][markdown "basics"
page]] and the
[[http://daringfireball.net/projects/markdown/syntax][markdown syntax
description]]. Consult the
[[http://johnmacfarlane.net/pandoc/README.html][pandoc User's Guide]]
for information about pandoc's syntax for footnotes, tables, description
lists, and other elements not present in standard markdown.
Markdown is pretty intuitive, since it is based on email conventions.
Here are some examples to get you started:
#+BEGIN_HTML
<table>
<tr>
<td>
#+END_HTML
=*emphasized text*=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
/emphasized text/
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=**strong emphasis**=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
*strong emphasis*
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=`literal text`=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
=literal text=
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=\*escaped special characters\*=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
*escaped special characters*
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=[external link](http://google.com)=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
[[http://google.com][external link]]
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=![folder](/img/icons/folder.png)=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
[[/img/icons/folder.png]]
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
Wikilink: =[Front Page]()=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
Wikilink: [[][Front Page]]
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=H~2~O=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
H_{2}O
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=10^100^=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
10^{100}
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=~~strikeout~~=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
+strikeout+
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=$x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}$=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
$x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}$ [1]
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
#+END_HTML
=A simple footnote.^[Or is it so simple?]=
#+BEGIN_HTML
</td>
<td>
#+END_HTML
A simple footnote. [2]
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
<pre>
> an indented paragraph,
> usually used for quotations
</pre>
</td>
<td>
#+END_HTML
#+BEGIN_QUOTE
an indented paragraph, usually used for quotations
#+END_QUOTE
#+BEGIN_HTML
</td>
<tr>
<td>
<pre>
#!/bin/sh -e
# code, indented four spaces
echo "Hello world"
</pre>
</td>
<td>
#+END_HTML
#+BEGIN_EXAMPLE
#!/bin/sh -e
# code, indented four spaces
echo "Hello world"
#+END_EXAMPLE
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
<pre>
* a bulleted list
* second item
- sublist
- and more
* back to main list
1. this item has an ordered
2. sublist
a) you can also use letters
b) another item
</pre>
</td>
<td>
#+END_HTML
- a bulleted list
- second item
- sublist
- and more
- back to main list
1. this item has an ordered
2. sublist
1) you can also use letters
2) another item
#+BEGIN_HTML
</td>
</tr>
<tr>
<td>
<pre>
Fruit Quantity
-------- -----------
apples 30,200
oranges 1,998
pears 42
Table: Our fruit inventory
</pre>
</td>
<td>
#+END_HTML
| Fruit | Quantity |
|-----------+------------|
| apples | 30,200 |
| oranges | 1,998 |
| pears | 42 |
#+CAPTION: Our fruit inventory
#+BEGIN_HTML
</td>
</tr>
</table>
#+END_HTML
For headings, prefix a line with one or more =#= signs: one for a major
heading, two for a subheading, three for a subsubheading. Be sure to
leave space before and after the heading.
#+BEGIN_EXAMPLE
# Markdown
Text...
## Some examples...
Text...
#+END_EXAMPLE
** Wiki links
Links to other wiki pages are formed this way: =[Page Name]()=. (Gitit
converts markdown links with empty targets into wikilinks.)
To link to a wiki page using something else as the link text:
=[something else](Page Name)=.
Note that page names may contain spaces and some special characters.
They need not be CamelCase. CamelCase words are /not/ automatically
converted to wiki links.
Wiki pages may be organized into directories. So, if you have several
pages on wine, you may wish to organize them like so:
#+BEGIN_EXAMPLE
Wine/Pinot Noir
Wine/Burgundy
Wine/Cabernet Sauvignon
#+END_EXAMPLE
Note that a wiki link =[Burgundy]()= that occurs inside the =Wine=
directory will link to =Wine/Burgundy=, and not to =Burgundy=. To link
to a top-level page called =Burgundy=, you'd have to use
=[Burgundy](/Burgundy)=.
To link to a directory listing for a subdirectory, use a trailing slash:
=[Wine/]()= will link to a listing of the =Wine= subdirectory.
[1] If this looks like code, it's because jsMath is not installed on
your system. Contact your administrator to request it.
[2] Or is it so simple?
|