markup.Textile 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. h1(#markdown). Markdown
  2. This wiki's pages are written in "pandoc":http://pandoc.org's extended form of "markdown":http://daringfireball.net/projects/markdown. If you're not familiar with markdown, you should start by looking at the "markdown "basics" page":http://daringfireball.net/projects/markdown/basics and the "markdown syntax description":http://daringfireball.net/projects/markdown/syntax. Consult the "pandoc User's Guide":http://pandoc.org/README.html for information about pandoc's syntax for footnotes, tables, description lists, and other elements not present in standard markdown.
  3. Markdown is pretty intuitive, since it is based on email conventions. Here are some examples to get you started:
  4. <table>
  5. <tr>
  6. <td>
  7. @*emphasized text*@
  8. </td>
  9. <td>
  10. _emphasized text_
  11. </td>
  12. </tr>
  13. <tr>
  14. <td>
  15. @**strong emphasis**@
  16. </td>
  17. <td>
  18. *strong emphasis*
  19. </td>
  20. </tr>
  21. <tr>
  22. <td>
  23. @`literal text`@
  24. </td>
  25. <td>
  26. @literal text@
  27. </td>
  28. </tr>
  29. <tr>
  30. <td>
  31. @\*escaped special characters\*@
  32. </td>
  33. <td>
  34. &#42;escaped special characters&#42;
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>
  39. @[external link](http://google.com)@
  40. </td>
  41. <td>
  42. "external link":http://google.com
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. @![folder](/img/icons/folder.png)@
  48. </td>
  49. <td>
  50. !/img/icons/folder.png(folder)!
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>
  55. Wikilink: @[Front Page]()@
  56. </td>
  57. <td>
  58. Wikilink: "Front Page":
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>
  63. @H~2~O@
  64. </td>
  65. <td>
  66. H[~2~]O
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. @10^100^@
  72. </td>
  73. <td>
  74. 10[^100^]
  75. </td>
  76. </tr>
  77. <tr>
  78. <td>
  79. @~~strikeout~~@
  80. </td>
  81. <td>
  82. -strikeout-
  83. </td>
  84. </tr>
  85. <tr>
  86. <td>
  87. @$x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}$@
  88. </td>
  89. <td>
  90. <span class="math">x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}</math>[1]
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>
  95. @A simple footnote.^[Or is it so simple?]@
  96. </td>
  97. <td>
  98. A simple footnote.[2]
  99. </td>
  100. </tr>
  101. <tr>
  102. <td>
  103. <pre>
  104. > an indented paragraph,
  105. > usually used for quotations
  106. </pre>
  107. </td>
  108. <td>
  109. bq. an indented paragraph, usually used for quotations
  110. </td>
  111. <tr>
  112. <td>
  113. <pre>
  114. #!/bin/sh -e
  115. # code, indented four spaces
  116. echo "Hello world"
  117. </pre>
  118. </td>
  119. <td>
  120. bc. #!/bin/sh -e
  121. # code, indented four spaces
  122. echo "Hello world"
  123. </td>
  124. </tr>
  125. <tr>
  126. <td>
  127. <pre>
  128. * a bulleted list
  129. * second item
  130. - sublist
  131. - and more
  132. * back to main list
  133. 1. this item has an ordered
  134. 2. sublist
  135. a) you can also use letters
  136. b) another item
  137. </pre>
  138. </td>
  139. <td>
  140. <ul>
  141. <li>a bulleted list</li>
  142. <li>second item
  143. <ul>
  144. <li>sublist</li>
  145. <li>and more</li>
  146. </ul>
  147. </li>
  148. <li>back to main list
  149. <ol style="list-style-type: decimal;">
  150. <li>this item has an ordered</li>
  151. <li>sublist
  152. <ol style="list-style-type: lower-alpha;">
  153. <li>you can also use letters</li>
  154. <li>another item</li>
  155. </ol>
  156. </li>
  157. </ol>
  158. </li>
  159. </ul>
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. <pre>
  165. Fruit Quantity
  166. -------- -----------
  167. apples 30,200
  168. oranges 1,998
  169. pears 42
  170. Table: Our fruit inventory
  171. </pre>
  172. </td>
  173. <td>
  174. <table>
  175. <caption>Our fruit inventory</caption>
  176. <thead>
  177. <tr class="header">
  178. <th align="left">Fruit</th>
  179. <th align="right">Quantity</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr class="odd">
  184. <td align="left">apples</td>
  185. <td align="right">30,200</td>
  186. </tr>
  187. <tr class="even">
  188. <td align="left">oranges</td>
  189. <td align="right">1,998</td>
  190. </tr>
  191. <tr class="odd">
  192. <td align="left">pears</td>
  193. <td align="right">42</td>
  194. </tr>
  195. </tbody>
  196. </table>
  197. </td>
  198. </tr>
  199. </table>
  200. 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.
  201. <pre>
  202. # Markdown
  203. Text...
  204. ## Some examples...
  205. Text...
  206. </pre>
  207. h2(#wiki-links). Wiki links
  208. Links to other wiki pages are formed this way: @[Page Name]()@. (Gitit converts markdown links with empty targets into wikilinks.)
  209. To link to a wiki page using something else as the link text: @[something else](Page Name)@.
  210. 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.
  211. Wiki pages may be organized into directories. So, if you have several pages on wine, you may wish to organize them like so:
  212. bc. Wine/Pinot Noir
  213. Wine/Burgundy
  214. Wine/Cabernet Sauvignon
  215. 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)@.
  216. To link to a directory listing for a subdirectory, use a trailing slash: @[Wine/]()@ will link to a listing of the @Wine@ subdirectory.
  217. fn1. If this looks like code, it's because MathJax is not installed on your system. Contact your administrator to request it.
  218. fn2. Or is it so simple?