maruku 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/bin/marutex +1 -1
  2. data/docs/maruku.md +12 -10
  3. data/lib/maruku/parse_block.rb +3 -1
  4. data/lib/maruku/parse_span.rb +57 -23
  5. data/lib/maruku/string_utils.rb +7 -0
  6. data/pkg/maruku-0.2.1/docs/markdown_syntax.md +920 -0
  7. data/pkg/maruku-0.2.1/docs/maruku.md +410 -0
  8. data/pkg/maruku-0.2.1/docs/todo.md +3 -0
  9. data/pkg/maruku-0.2.1/tests/abbreviations.md +11 -0
  10. data/pkg/maruku-0.2.1/tests/blank.md +4 -0
  11. data/pkg/maruku-0.2.1/tests/bugs/code_in_links.md +16 -0
  12. data/pkg/maruku-0.2.1/tests/code.md +5 -0
  13. data/pkg/maruku-0.2.1/tests/code2.md +8 -0
  14. data/pkg/maruku-0.2.1/tests/code3.md +16 -0
  15. data/pkg/maruku-0.2.1/tests/email.md +4 -0
  16. data/pkg/maruku-0.2.1/tests/entities.md +19 -0
  17. data/pkg/maruku-0.2.1/tests/escaping.md +14 -0
  18. data/pkg/maruku-0.2.1/tests/extra_dl.md +101 -0
  19. data/pkg/maruku-0.2.1/tests/extra_header_id.md +13 -0
  20. data/pkg/maruku-0.2.1/tests/extra_table1.md +40 -0
  21. data/pkg/maruku-0.2.1/tests/footnotes.md +17 -0
  22. data/pkg/maruku-0.2.1/tests/headers.md +10 -0
  23. data/pkg/maruku-0.2.1/tests/hrule.md +10 -0
  24. data/pkg/maruku-0.2.1/tests/images.md +20 -0
  25. data/pkg/maruku-0.2.1/tests/inline_html.md +35 -0
  26. data/pkg/maruku-0.2.1/tests/links.md +38 -0
  27. data/pkg/maruku-0.2.1/tests/list1.md +4 -0
  28. data/pkg/maruku-0.2.1/tests/list2.md +5 -0
  29. data/pkg/maruku-0.2.1/tests/list3.md +8 -0
  30. data/pkg/maruku-0.2.1/tests/lists.md +32 -0
  31. data/pkg/maruku-0.2.1/tests/lists_ol.md +39 -0
  32. data/pkg/maruku-0.2.1/tests/misc_sw.md +105 -0
  33. data/pkg/maruku-0.2.1/tests/one.md +1 -0
  34. data/pkg/maruku-0.2.1/tests/paragraphs.md +13 -0
  35. data/pkg/maruku-0.2.1/tests/sss06.md +352 -0
  36. data/pkg/maruku-0.2.1/tests/test.md +4 -0
  37. data/pkg/maruku-0.2.2/docs/markdown_syntax.md +920 -0
  38. data/pkg/maruku-0.2.2/docs/maruku.md +410 -0
  39. data/pkg/maruku-0.2.2/docs/todo.md +3 -0
  40. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/docs/markdown_syntax.md +920 -0
  41. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/docs/maruku.md +410 -0
  42. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/docs/todo.md +3 -0
  43. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/abbreviations.md +11 -0
  44. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/blank.md +4 -0
  45. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/bugs/code_in_links.md +16 -0
  46. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/code.md +5 -0
  47. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/code2.md +8 -0
  48. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/code3.md +16 -0
  49. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/email.md +4 -0
  50. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/entities.md +19 -0
  51. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/escaping.md +14 -0
  52. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/extra_dl.md +101 -0
  53. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/extra_header_id.md +13 -0
  54. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/extra_table1.md +40 -0
  55. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/footnotes.md +17 -0
  56. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/headers.md +10 -0
  57. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/hrule.md +10 -0
  58. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/images.md +20 -0
  59. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/inline_html.md +35 -0
  60. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/links.md +38 -0
  61. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/list1.md +4 -0
  62. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/list2.md +5 -0
  63. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/list3.md +8 -0
  64. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/lists.md +32 -0
  65. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/lists_ol.md +39 -0
  66. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/misc_sw.md +105 -0
  67. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/one.md +1 -0
  68. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/paragraphs.md +13 -0
  69. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/sss06.md +352 -0
  70. data/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/test.md +4 -0
  71. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/docs/markdown_syntax.md +920 -0
  72. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/docs/maruku.md +410 -0
  73. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/docs/todo.md +3 -0
  74. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/docs/markdown_syntax.md +920 -0
  75. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/docs/maruku.md +410 -0
  76. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/docs/todo.md +3 -0
  77. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/abbreviations.md +11 -0
  78. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/blank.md +4 -0
  79. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/bugs/code_in_links.md +16 -0
  80. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/code.md +5 -0
  81. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/code2.md +8 -0
  82. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/code3.md +16 -0
  83. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/email.md +4 -0
  84. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/entities.md +19 -0
  85. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/escaping.md +14 -0
  86. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/extra_dl.md +101 -0
  87. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/extra_header_id.md +13 -0
  88. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/extra_table1.md +40 -0
  89. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/footnotes.md +17 -0
  90. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/headers.md +10 -0
  91. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/hrule.md +10 -0
  92. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/images.md +20 -0
  93. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/inline_html.md +35 -0
  94. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/links.md +38 -0
  95. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/list1.md +4 -0
  96. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/list2.md +5 -0
  97. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/list3.md +8 -0
  98. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/lists.md +32 -0
  99. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/lists_ol.md +39 -0
  100. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/misc_sw.md +105 -0
  101. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/one.md +1 -0
  102. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/paragraphs.md +13 -0
  103. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/sss06.md +352 -0
  104. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/pkg/maruku-0.2.1/tests/test.md +4 -0
  105. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/abbreviations.md +11 -0
  106. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/blank.md +4 -0
  107. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/bugs/code_in_links.md +16 -0
  108. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/code.md +5 -0
  109. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/code2.md +8 -0
  110. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/code3.md +16 -0
  111. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/email.md +4 -0
  112. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/entities.md +19 -0
  113. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/escaping.md +14 -0
  114. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/extra_dl.md +101 -0
  115. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/extra_header_id.md +13 -0
  116. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/extra_table1.md +40 -0
  117. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/footnotes.md +17 -0
  118. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/headers.md +10 -0
  119. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/hrule.md +10 -0
  120. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/images.md +20 -0
  121. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/inline_html.md +35 -0
  122. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/links.md +38 -0
  123. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/list1.md +4 -0
  124. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/list2.md +5 -0
  125. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/list3.md +8 -0
  126. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/lists.md +32 -0
  127. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/lists_ol.md +39 -0
  128. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/misc_sw.md +105 -0
  129. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/one.md +1 -0
  130. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/paragraphs.md +13 -0
  131. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/sss06.md +352 -0
  132. data/pkg/maruku-0.2.2/pkg/maruku-0.2.2/tests/test.md +4 -0
  133. data/pkg/maruku-0.2.2/tests/abbreviations.md +11 -0
  134. data/pkg/maruku-0.2.2/tests/blank.md +4 -0
  135. data/pkg/maruku-0.2.2/tests/bugs/code_in_links.md +16 -0
  136. data/pkg/maruku-0.2.2/tests/code.md +5 -0
  137. data/pkg/maruku-0.2.2/tests/code2.md +8 -0
  138. data/pkg/maruku-0.2.2/tests/code3.md +16 -0
  139. data/pkg/maruku-0.2.2/tests/email.md +4 -0
  140. data/pkg/maruku-0.2.2/tests/entities.md +19 -0
  141. data/pkg/maruku-0.2.2/tests/escaping.md +14 -0
  142. data/pkg/maruku-0.2.2/tests/extra_dl.md +101 -0
  143. data/pkg/maruku-0.2.2/tests/extra_header_id.md +13 -0
  144. data/pkg/maruku-0.2.2/tests/extra_table1.md +40 -0
  145. data/pkg/maruku-0.2.2/tests/footnotes.md +17 -0
  146. data/pkg/maruku-0.2.2/tests/headers.md +10 -0
  147. data/pkg/maruku-0.2.2/tests/hrule.md +10 -0
  148. data/pkg/maruku-0.2.2/tests/images.md +20 -0
  149. data/pkg/maruku-0.2.2/tests/inline_html.md +35 -0
  150. data/pkg/maruku-0.2.2/tests/links.md +38 -0
  151. data/pkg/maruku-0.2.2/tests/list1.md +4 -0
  152. data/pkg/maruku-0.2.2/tests/list2.md +5 -0
  153. data/pkg/maruku-0.2.2/tests/list3.md +8 -0
  154. data/pkg/maruku-0.2.2/tests/lists.md +32 -0
  155. data/pkg/maruku-0.2.2/tests/lists_ol.md +39 -0
  156. data/pkg/maruku-0.2.2/tests/misc_sw.md +105 -0
  157. data/pkg/maruku-0.2.2/tests/one.md +1 -0
  158. data/pkg/maruku-0.2.2/tests/paragraphs.md +13 -0
  159. data/pkg/maruku-0.2.2/tests/sss06.md +352 -0
  160. data/pkg/maruku-0.2.2/tests/test.md +4 -0
  161. data/tests/bugs/code_in_links.md +16 -0
  162. metadata +158 -21
  163. data/docs/Makefile +0 -25
  164. data/docs/char_codes.xml +0 -884
  165. data/docs/color-package-demo.aux +0 -1
  166. data/docs/color-package-demo.log +0 -127
  167. data/docs/color-package-demo.tex +0 -149
  168. data/docs/index.html +0 -76
  169. data/docs/markdown_syntax.aux +0 -13
  170. data/docs/markdown_syntax.html +0 -266
  171. data/docs/markdown_syntax.log +0 -287
  172. data/docs/markdown_syntax.out +0 -0
  173. data/docs/markdown_syntax.pdf +0 -0
  174. data/docs/markdown_syntax.tex +0 -1202
  175. data/docs/maruku.aux +0 -13
  176. data/docs/maruku.html +0 -76
  177. data/docs/maruku.log +0 -270
  178. data/docs/maruku.out +0 -0
  179. data/docs/maruku.pdf +0 -0
  180. data/docs/maruku.tex +0 -563
  181. data/docs/style.css +0 -65
@@ -1,287 +0,0 @@
1
- This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=pdflatex 2005.12.27) 25 DEC 2006 21:06
2
- entering extended mode
3
- **./markdown_syntax
4
- (./markdown_syntax.tex
5
- LaTeX2e <2003/12/01>
6
- Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
7
- ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
8
- stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
9
- h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
10
- kish, ukrainian, nohyphenation, loaded.
11
- (/sw/share/texmf-dist/tex/latex/base/article.cls
12
- Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
13
- (/sw/share/texmf-dist/tex/latex/base/size10.clo
14
- File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
15
- )
16
- \c@part=\count79
17
- \c@section=\count80
18
- \c@subsection=\count81
19
- \c@subsubsection=\count82
20
- \c@paragraph=\count83
21
- \c@subparagraph=\count84
22
- \c@figure=\count85
23
- \c@table=\count86
24
- \abovecaptionskip=\skip41
25
- \belowcaptionskip=\skip42
26
- \bibindent=\dimen102
27
- )
28
- (/sw/share/texmf-dist/tex/latex/listings/listings.sty
29
- (/sw/share/texmf-dist/tex/latex/graphics/keyval.sty
30
- Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
31
- \KV@toks@=\toks14
32
- )
33
- \lst@mode=\count87
34
- \lst@gtempboxa=\box26
35
- \lst@token=\toks15
36
- \lst@length=\count88
37
- \lst@currlwidth=\dimen103
38
- \lst@column=\count89
39
- \lst@pos=\count90
40
- \lst@lostspace=\dimen104
41
- \lst@width=\dimen105
42
- \lst@newlines=\count91
43
- \lst@lineno=\count92
44
- \c@lstlisting=\count93
45
- \lst@maxwidth=\dimen106
46
-
47
- (/sw/share/texmf-dist/tex/latex/listings/lstpatch.sty
48
- File: lstpatch.sty 2004/10/17 1.3b (Carsten Heinz)
49
- )
50
- (/sw/share/texmf-dist/tex/latex/listings/lstmisc.sty
51
- File: lstmisc.sty 2004/09/07 1.3 (Carsten Heinz)
52
- \c@lstnumber=\count94
53
- \lst@skipnumbers=\count95
54
- \lst@framebox=\box27
55
- )
56
- (/sw/share/texmf-dist/tex/latex/listings/listings.cfg
57
- File: listings.cfg 2004/09/05 1.3 listings configuration
58
- ))
59
- Package: listings 2004/10/17 1.3b (Carsten Heinz)
60
-
61
- (/sw/share/texmf-dist/tex/latex/hyperref/hyperref.sty
62
- Package: hyperref 2003/11/30 v6.74m Hypertext links for LaTeX
63
- \@linkdim=\dimen107
64
- \Hy@linkcounter=\count96
65
- \Hy@pagecounter=\count97
66
-
67
- (/sw/share/texmf-dist/tex/latex/hyperref/pd1enc.def
68
- File: pd1enc.def 2003/11/30 v6.74m Hyperref: PDFDocEncoding definition (HO)
69
- )
70
- (/sw/share/texmf-dist/tex/latex/hyperref/hyperref.cfg
71
- File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
72
- )
73
- Package hyperref Info: Hyper figures OFF on input line 1880.
74
- Package hyperref Info: Link nesting OFF on input line 1885.
75
- Package hyperref Info: Hyper index ON on input line 1888.
76
- Package hyperref Info: Plain pages ON on input line 1893.
77
- Package hyperref Info: Backreferencing OFF on input line 1900.
78
-
79
- Implicit mode ON; LaTeX internals redefined
80
- Package hyperref Info: Bookmarks ON on input line 2004.
81
- (/sw/share/texmf-local/tex/latex/html/url.sty
82
- Package: url 1999/03/02 ver 1.4 Verb mode for urls, email addresses, and file
83
- names
84
- )
85
- LaTeX Info: Redefining \url on input line 2143.
86
- \Fld@menulength=\count98
87
- \Field@Width=\dimen108
88
- \Fld@charsize=\dimen109
89
- \Choice@toks=\toks16
90
- \Field@toks=\toks17
91
- Package hyperref Info: Hyper figures OFF on input line 2618.
92
- Package hyperref Info: Link nesting OFF on input line 2623.
93
- Package hyperref Info: Hyper index ON on input line 2626.
94
- Package hyperref Info: backreferencing OFF on input line 2633.
95
- Package hyperref Info: Link coloring OFF on input line 2638.
96
- \c@Item=\count99
97
- \c@Hfootnote=\count100
98
- )
99
- *hyperref using default driver hpdftex*
100
- (/sw/share/texmf-dist/tex/latex/hyperref/hpdftex.def
101
- File: hpdftex.def 2003/11/30 v6.74m Hyperref driver for pdfTeX
102
-
103
- (/sw/share/texmf-dist/tex/latex/psnfss/pifont.sty
104
- Package: pifont 2004/09/15 PSNFSS-v9.2 Pi font support (SPQR)
105
- LaTeX Font Info: Try loading font information for U+pzd on input line 63.
106
-
107
- (/sw/share/texmf-dist/tex/latex/psnfss/upzd.fd
108
- File: upzd.fd 2001/06/04 font definitions for U/pzd.
109
- )
110
- LaTeX Font Info: Try loading font information for U+psy on input line 64.
111
-
112
- (/sw/share/texmf-dist/tex/latex/psnfss/upsy.fd
113
- File: upsy.fd 2001/06/04 font definitions for U/psy.
114
- ))
115
- \Fld@listcount=\count101
116
- \@outlinefile=\write3
117
- )
118
- (/sw/share/texmf-dist/tex/latex/graphics/color.sty
119
- Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)
120
-
121
- (/sw/share/texmf-dist/tex/latex/graphics/color.cfg
122
- File: color.cfg 2005/02/03 v1.3 color configuration of teTeX/TeXLive
123
- )
124
- Package color Info: Driver file: pdftex.def on input line 125.
125
-
126
- (/sw/share/texmf-dist/tex/latex/graphics/pdftex.def
127
- File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
128
- \Gread@gobject=\count102
129
- )
130
- (/sw/share/texmf-dist/tex/latex/graphics/dvipsnam.def
131
- File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
132
- ))
133
- Package hyperref Info: Option `colorlinks' set `true' on input line 8.
134
- (./markdown_syntax.aux)
135
- \openout1 = `markdown_syntax.aux'.
136
-
137
- LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.
138
- LaTeX Font Info: ... okay on input line 9.
139
- LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
140
- LaTeX Font Info: ... okay on input line 9.
141
- LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
142
- LaTeX Font Info: ... okay on input line 9.
143
- LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.
144
- LaTeX Font Info: ... okay on input line 9.
145
- LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.
146
- LaTeX Font Info: ... okay on input line 9.
147
- LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
148
- LaTeX Font Info: ... okay on input line 9.
149
- LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 9.
150
- LaTeX Font Info: ... okay on input line 9.
151
- Package hyperref Info: Link coloring ON on input line 9.
152
- (/sw/share/texmf-dist/tex/latex/hyperref/nameref.sty
153
- Package: nameref 2003/12/03 v2.21 Cross-referencing by name of section
154
- \c@section@level=\count103
155
- )
156
- LaTeX Info: Redefining \ref on input line 9.
157
- LaTeX Info: Redefining \pageref on input line 9.
158
- (./markdown_syntax.out)
159
- (./markdown_syntax.out)
160
- \openout3 = `markdown_syntax.out'.
161
-
162
- (/sw/share/texmf-dist/tex/context/base/supp-pdf.tex
163
- (/sw/share/texmf-dist/tex/context/base/supp-mis.tex
164
- loading : Context Support Macros / Miscellaneous (2004.10.26)
165
- \protectiondepth=\count104
166
- \scratchcounter=\count105
167
- \scratchtoks=\toks18
168
- \scratchdimen=\dimen110
169
- \scratchskip=\skip43
170
- \scratchmuskip=\muskip10
171
- \scratchbox=\box28
172
- \scratchread=\read1
173
- \scratchwrite=\write4
174
- \zeropoint=\dimen111
175
- \onepoint=\dimen112
176
- \onebasepoint=\dimen113
177
- \minusone=\count106
178
- \thousandpoint=\dimen114
179
- \onerealpoint=\dimen115
180
- \emptytoks=\toks19
181
- \nextbox=\box29
182
- \nextdepth=\dimen116
183
- \everyline=\toks20
184
- \!!counta=\count107
185
- \!!countb=\count108
186
- \recursecounter=\count109
187
- )
188
- loading : Context Support Macros / PDF (2004.03.26)
189
- \nofMPsegments=\count110
190
- \nofMParguments=\count111
191
- \MPscratchCnt=\count112
192
- \MPscratchDim=\dimen117
193
- \MPnumerator=\count113
194
- \everyMPtoPDFconversion=\toks21
195
- )
196
- LaTeX Font Info: Try loading font information for OMS+cmr on input line 19.
197
- (/sw/share/texmf-dist/tex/latex/base/omscmr.fd
198
- File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
199
- )
200
- LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
201
- (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 19.
202
- [1
203
-
204
- {/Users/andrea/.texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
205
- (/sw/share/texmf-dist/tex/latex/listings/lstlang1.sty
206
- File: lstlang1.sty 2004/09/05 1.3 listings language file
207
- )
208
- (/sw/share/texmf-dist/tex/latex/listings/lstmisc.sty
209
- File: lstmisc.sty 2004/09/07 1.3 (Carsten Heinz)
210
- )
211
- LaTeX Font Info: Font shape `OT1/cmtt/bx/n' in size <8> not available
212
- (Font) Font shape `OT1/cmtt/m/n' tried instead on input line 92.
213
- [2] [3] [4]
214
- Overfull \hbox (17.10802pt too wide) in paragraph at lines 259--260
215
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
216
- []
217
-
218
-
219
- Overfull \hbox (1.80768pt too wide) in paragraph at lines 260--261
220
- [][][][][][][][][][][][][][][][][][][][][][]
221
- []
222
-
223
-
224
- Overfull \hbox (22.20813pt too wide) in paragraph at lines 261--262
225
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
226
- []
227
-
228
-
229
- Overfull \hbox (17.10802pt too wide) in paragraph at lines 263--264
230
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][]
231
- []
232
-
233
-
234
- Overfull \hbox (17.10802pt too wide) in paragraph at lines 274--275
235
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
236
- []
237
-
238
-
239
- Overfull \hbox (12.0079pt too wide) in paragraph at lines 276--278
240
- [][][][][][][][][][][][][][][][][][][][][][][][][][][]
241
- []
242
-
243
-
244
- Overfull \hbox (17.10802pt too wide) in paragraph at lines 278--279
245
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][]
246
- []
247
-
248
- [5] [6] [7] [8] [9] [10] [11]
249
- Overfull \hbox (12.0079pt too wide) in paragraph at lines 907--908
250
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
251
- []
252
-
253
- [12] [13] [14]
254
- Overfull \hbox (17.10802pt too wide) in paragraph at lines 1161--1162
255
- [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
256
- []
257
-
258
-
259
- Overfull \hbox (17.10802pt too wide) in paragraph at lines 1162--1163
260
- [][][][][][][][][][][][][][]
261
- []
262
-
263
-
264
- Overfull \hbox (27.30824pt too wide) in paragraph at lines 1163--1164
265
- [][][][][][][][][][][][][][][][][][][]
266
- []
267
-
268
- [15] [16] (./markdown_syntax.aux) )
269
- Here is how much of TeX's memory you used:
270
- 4638 strings out of 94500
271
- 63817 string characters out of 1176113
272
- 140563 words of memory out of 1000000
273
- 7413 multiletter control sequences out of 10000+50000
274
- 6829 words of font info for 25 fonts, out of 500000 for 2000
275
- 580 hyphenation exceptions out of 1000
276
- 28i,6n,59p,967b,1470s stack positions out of 1500i,500n,5000p,200000b,5000s
277
- PDF statistics:
278
- 500 PDF objects out of 300000
279
- 391 named destinations out of 131072
280
- 17 words of extra memory for PDF output out of 65536
281
- </sw/share/texmf-dist/fonts/type1/bluesky/cm
282
- /cmtt8.pfb></sw/share/texmf-dist/fonts/type1/bluesky/cm/cmti10.pfb></sw/share/t
283
- exmf-dist/fonts/type1/bluesky/cm/cmsy10.pfb></sw/share/texmf-dist/fonts/type1/b
284
- luesky/cm/cmtt10.pfb></sw/share/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb></s
285
- w/share/texmf-dist/fonts/type1/bluesky/cm/cmbx10.pfb></sw/share/texmf-dist/font
286
- s/type1/bluesky/cm/cmbx12.pfb>
287
- Output written on markdown_syntax.pdf (16 pages, 177829 bytes).
File without changes
Binary file
@@ -1,1202 +0,0 @@
1
- \documentclass{article}
2
-
3
- \usepackage{listings}
4
-
5
- \usepackage{hyperref}
6
- %\usepackage[x11names]{xcolor}
7
- \usepackage[usenames,dvipsnames]{color}
8
- \hypersetup{colorlinks=true}
9
- \begin{document}
10
- \section*{Markdown: Syntax}
11
-
12
- {\bf Note:}
13
-
14
- This copy is translated using \href{http://maruku.rubyforge.org}{Maruku}.
15
-
16
- \href{http://daringfireball.net/projects/markdown/syntax}{Here} you can find the original by \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char77\char97\char114\char107\char100\char111\char119\char110\char46\char112\char108}.
17
-
18
- \begin{itemize}%
19
- \item \hyperlink{overview}{Overview}
20
-
21
- \begin{itemize}%
22
- \item \hyperlink{philosophy}{Philosophy}
23
- \item \hyperlink{html}{Inline HTML}
24
- \item \hyperlink{autoescape}{Automatic Escaping for Special Characters}
25
-
26
- \end{itemize}
27
-
28
- \item \hyperlink{block}{Block Elements}
29
-
30
- \begin{itemize}%
31
- \item \hyperlink{p}{Paragraphs and Line Breaks}
32
- \item \hyperlink{header}{Headers}
33
- \item \hyperlink{blockquote}{Blockquotes}
34
- \item \hyperlink{list}{Lists}
35
- \item \hyperlink{precode}{Code Blocks}
36
- \item \hyperlink{hr}{Horizontal Rules}
37
-
38
- \end{itemize}
39
-
40
- \item \hyperlink{span}{Span Elements}
41
-
42
- \begin{itemize}%
43
- \item \hyperlink{link}{Links}
44
- \item \hyperlink{em}{Emphasis}
45
- \item \hyperlink{code}{Code}
46
- \item \hyperlink{img}{Images}
47
-
48
- \end{itemize}
49
-
50
- \item \hyperlink{misc}{Miscellaneous}
51
-
52
- \begin{itemize}%
53
- \item \hyperlink{backslash}{Backslash Escapes}
54
- \item \hyperlink{autolink}{Automatic Links}
55
-
56
- \end{itemize}
57
-
58
-
59
- \end{itemize}
60
-
61
- \vspace{.5em} \hrule \vspace{.5em}
62
- \hypertarget{overview}{}\subsection*{{Overview}}
63
-
64
- \hypertarget{philosophy}{}\subsubsection*{{Philosophy}}
65
-
66
- Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
67
-
68
- Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions. While Markdown's syntax has been influenced by several existing text-to-HTML filters -- including \href{http://docutils.sourceforge.net/mirror/setext.html}{Setext}, \href{http://www.aaronsw.com/2002/atx/}{atx}, \href{http://textism.com/tools/textile/}{Textile}, \href{http://docutils.sourceforge.net/rst.html}{reStructuredText}, \href{http://www.triptico.com/software/grutatxt.html}{Grutatext}, and \href{http://ettext.taint.org/doc/}{EtText} -- the single biggest source of inspiration for Markdown's syntax is the format of plain text email.
69
-
70
- To this end, Markdown's syntax is comprised entirely of punctuation characters, which punctuation characters have been carefully chosen so as to look like what they mean. E.g., asterisks around a word actually look like *emphasis*. Markdown lists look like, well, lists. Even blockquotes look like quoted passages of text, assuming you've ever used email.
71
-
72
- \hypertarget{html}{}\subsubsection*{{Inline HTML}}
73
-
74
- Markdown's syntax is intended for one purpose: to be used as a format for {\em writing} for the web.
75
-
76
- Markdown is not a replacement for HTML, or even close to it. Its syntax is very small, corresponding only to a very small subset of HTML tags. The idea is {\em not} to create a syntax that makes it easier to insert HTML tags. In my opinion, HTML tags are already easy to insert. The idea for Markdown is to make it easy to read, write, and edit prose. HTML is a {\em publishing} format; Markdown is a {\em writing} format. Thus, Markdown's formatting syntax only addresses issues that can be conveyed in plain text.
77
-
78
- For any markup that is not covered by Markdown's syntax, you simply use HTML itself. There's no need to preface it or delimit it to indicate that you're switching from Markdown to HTML; you just use the tags.
79
-
80
- The only restrictions are that block-level HTML elements -- e.g. \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char100\char105\char118\char62}, \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char116\char97\char98\char108\char101\char62}, \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char112\char114\char101\char62}, \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char112\char62}, etc. -- must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces. Markdown is smart enough not to add extra (unwanted) \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char112\char62} tags around HTML block-level tags.
81
-
82
- For example, to add an HTML table to a Markdown article:
83
-
84
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
85
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
86
- \lstset{basicstyle=\ttfamily\footnotesize}
87
- \lstset{language=html}
88
-
89
- \begin{lstlisting}
90
- This is a regular paragraph.
91
-
92
- <table>
93
- <tr>
94
- <td>Foo</td>
95
- </tr>
96
- </table>
97
-
98
- This is another regular paragraph.
99
-
100
- \end{lstlisting}Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can't use Markdown-style \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char42\char101\char109\char112\char104\char97\char115\char105\char115\char42} inside an HTML block.
101
-
102
- Span-level HTML tags -- e.g. \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char115\char112\char97\char110\char62}, \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char99\char105\char116\char101\char62}, or \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char100\char101\char108\char62} -- can be used anywhere in a Markdown paragraph, list item, or header. If you want, you can even use HTML tags instead of Markdown formatting; e.g. if you'd prefer to use HTML \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char97\char62} or \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char105\char109\char103\char62} tags instead of Markdown's link or image syntax, go right ahead.
103
-
104
- Unlike block-level HTML tags, Markdown syntax {\em is} processed within span-level tags.
105
-
106
- \hypertarget{autoescape}{}\subsubsection*{{Automatic Escaping for Special Characters}}
107
-
108
- In HTML, there are two characters that demand special treatment: \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60} and \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char38}. Left angle brackets are used to start tags; ampersands are used to denote HTML entities. If you want to use them as literal characters, you must escape them as entities, e.g. \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char38\char108\char116\char59}, and \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char38\char97\char109\char112\char59}.
109
-
110
- Ampersands in particular are bedeviling for web writers. If you want to write about 'AT\&T', you need to write '\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char65\char84\char38\char97\char109\char112\char59\char84}'. You even need to escape ampersands within URLs. Thus, if you want to link to:
111
-
112
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
113
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
114
- \lstset{basicstyle=\ttfamily\footnotesize}
115
- \lstset{language={}}
116
-
117
- \begin{lstlisting}
118
- http://images.google.com/images?num=30&q=larry+bird
119
-
120
- \end{lstlisting}you need to encode the URL as:
121
-
122
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
123
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
124
- \lstset{basicstyle=\ttfamily\footnotesize}
125
- \lstset{language={}}
126
-
127
- \begin{lstlisting}
128
- http://images.google.com/images?num=30&amp;q=larry+bird
129
-
130
- \end{lstlisting}in your anchor tag \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char104\char114\char101\char102} attribute. Needless to say, this is easy to forget, and is probably the single most common source of HTML validation errors in otherwise well-marked-up web sites.
131
-
132
- Markdown allows you to use these characters naturally, taking care of all the necessary escaping for you. If you use an ampersand as part of an HTML entity, it remains unchanged; otherwise it will be translated into \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char38\char97\char109\char112\char59}.
133
-
134
- So, if you want to include a copyright symbol in your article, you can write:
135
-
136
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
137
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
138
- \lstset{basicstyle=\ttfamily\footnotesize}
139
- \lstset{language=html}
140
-
141
- \begin{lstlisting}
142
- &copy;
143
-
144
- \end{lstlisting}and Markdown will leave it alone. But if you write:
145
-
146
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
147
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
148
- \lstset{basicstyle=\ttfamily\footnotesize}
149
- \lstset{language={}}
150
-
151
- \begin{lstlisting}
152
- AT&T
153
-
154
- \end{lstlisting}Markdown will translate it to:
155
-
156
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
157
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
158
- \lstset{basicstyle=\ttfamily\footnotesize}
159
- \lstset{language=html}
160
-
161
- \begin{lstlisting}
162
- AT&amp;T
163
-
164
- \end{lstlisting}Similarly, because Markdown supports \hyperlink{html}{inline HTML}, if you use angle brackets as delimiters for HTML tags, Markdown will treat them as such. But if you write:
165
-
166
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
167
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
168
- \lstset{basicstyle=\ttfamily\footnotesize}
169
- \lstset{language={}}
170
-
171
- \begin{lstlisting}
172
- 4 < 5
173
-
174
- \end{lstlisting}Markdown will translate it to:
175
-
176
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
177
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
178
- \lstset{basicstyle=\ttfamily\footnotesize}
179
- \lstset{language=html}
180
-
181
- \begin{lstlisting}
182
- 4 &lt; 5
183
-
184
- \end{lstlisting}However, inside Markdown code spans and blocks, angle brackets and ampersands are {\em always} encoded automatically. This makes it easy to use Markdown to write about HTML code. (As opposed to raw HTML, which is a terrible format for writing about HTML syntax, because every single \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60} and \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char38} in your example code needs to be escaped.)
185
-
186
-
187
- \vspace{.5em} \hrule \vspace{.5em}
188
- \hypertarget{block}{}\subsection*{{Block Elements}}
189
-
190
- \hypertarget{p}{}\subsubsection*{{Paragraphs and Line Breaks}}
191
-
192
- A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines. (A blank line is any line that looks like a blank line -- a line containing nothing but spaces or tabs is considered blank.) Normal paragraphs should not be intended with spaces or tabs.
193
-
194
- The implication of the "one or more consecutive lines of text" rule is that Markdown supports "hard-wrapped" text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type's "Convert Line Breaks" option) which translate every line break character in a paragraph into a \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char98\char114\char32\char47\char62} tag.
195
-
196
- When you {\em do} want to insert a \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char98\char114\char32\char47\char62} break tag using Markdown, you end a line with two or more spaces, then type return.
197
-
198
- Yes, this takes a tad more effort to create a \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char98\char114\char32\char47\char62}, but a simplistic "every line break is a \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char98\char114\char32\char47\char62}" rule wouldn't work for Markdown. Markdown's email-style \hyperlink{blockquote}{blockquoting} and multi-paragraph \hyperlink{list}{list items} work best -- and look better -- when you format them with hard breaks.
199
-
200
- \hypertarget{header}{}\subsubsection*{{Headers}}
201
-
202
- Markdown supports two styles of headers, \href{http://docutils.sourceforge.net/mirror/setext.html}{Setext} and \href{http://www.aaronsw.com/2002/atx/}{atx}.
203
-
204
- Setext-style headers are "underlined" using equal signs (for first-level headers) and dashes (for second-level headers). For example:
205
-
206
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
207
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
208
- \lstset{basicstyle=\ttfamily\footnotesize}
209
- \lstset{language={}}
210
-
211
- \begin{lstlisting}
212
- This is an H1
213
- =============
214
-
215
- This is an H2
216
- -------------
217
-
218
- \end{lstlisting}Any number of underlining \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char61}'s or \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char45}'s will work.
219
-
220
- Atx-style headers use 1-6 hash characters at the start of the line, corresponding to header levels 1-6. For example:
221
-
222
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
223
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
224
- \lstset{basicstyle=\ttfamily\footnotesize}
225
- \lstset{language={}}
226
-
227
- \begin{lstlisting}
228
- # This is an H1
229
-
230
- ## This is an H2
231
-
232
- ###### This is an H6
233
-
234
- \end{lstlisting}Optionally, you may "close" atx-style headers. This is purely cosmetic -- you can use this if you think it looks better. The closing hashes don't even need to match the number of hashes used to open the header. (The number of opening hashes determines the header level.) :
235
-
236
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
237
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
238
- \lstset{basicstyle=\ttfamily\footnotesize}
239
- \lstset{language={}}
240
-
241
- \begin{lstlisting}
242
- # This is an H1 #
243
-
244
- ## This is an H2 ##
245
-
246
- ### This is an H3 ######
247
-
248
-
249
- \end{lstlisting}\hypertarget{blockquote}{}\subsubsection*{{Blockquotes}}
250
-
251
- Markdown uses email-style \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char62} characters for blockquoting. If you're familiar with quoting passages of text in an email message, then you know how to create a blockquote in Markdown. It looks best if you hard wrap the text and put a \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char62} before every line:
252
-
253
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
254
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
255
- \lstset{basicstyle=\ttfamily\footnotesize}
256
- \lstset{language={}}
257
-
258
- \begin{lstlisting}
259
- > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
260
- > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
261
- > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
262
- >
263
- > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
264
- > id sem consectetuer libero luctus adipiscing.
265
-
266
- \end{lstlisting}Markdown allows you to be lazy and only put the \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char62} before the first line of a hard-wrapped paragraph:
267
-
268
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
269
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
270
- \lstset{basicstyle=\ttfamily\footnotesize}
271
- \lstset{language={}}
272
-
273
- \begin{lstlisting}
274
- > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
275
- consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
276
- Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
277
-
278
- > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
279
- id sem consectetuer libero luctus adipiscing.
280
-
281
- \end{lstlisting}Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by adding additional levels of \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char62}:
282
-
283
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
284
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
285
- \lstset{basicstyle=\ttfamily\footnotesize}
286
- \lstset{language={}}
287
-
288
- \begin{lstlisting}
289
- > This is the first level of quoting.
290
- >
291
- > > This is nested blockquote.
292
- >
293
- > Back to the first level.
294
-
295
- \end{lstlisting}Blockquotes can contain other Markdown elements, including headers, lists, and code blocks:
296
-
297
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
298
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
299
- \lstset{basicstyle=\ttfamily\footnotesize}
300
- \lstset{language={}}
301
-
302
- \begin{lstlisting}
303
- > ## This is a header.
304
- >
305
- > 1. This is the first list item.
306
- > 2. This is the second list item.
307
- >
308
- > Here's some example code:
309
- >
310
- > return shell_exec("echo $input | $markdown_script");
311
-
312
- \end{lstlisting}Any decent text editor should make email-style quoting easy. For example, with BBEdit, you can make a selection and choose Increase Quote Level from the Text menu.
313
-
314
- \hypertarget{list}{}\subsubsection*{{Lists}}
315
-
316
- Markdown supports ordered (numbered) and unordered (bulleted) lists.
317
-
318
- Unordered lists use asterisks, pluses, and hyphens -- interchangably -- as list markers:
319
-
320
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
321
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
322
- \lstset{basicstyle=\ttfamily\footnotesize}
323
- \lstset{language={}}
324
-
325
- \begin{lstlisting}
326
- * Red
327
- * Green
328
- * Blue
329
-
330
- \end{lstlisting}is equivalent to:
331
-
332
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
333
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
334
- \lstset{basicstyle=\ttfamily\footnotesize}
335
- \lstset{language={}}
336
-
337
- \begin{lstlisting}
338
- + Red
339
- + Green
340
- + Blue
341
-
342
- \end{lstlisting}and:
343
-
344
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
345
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
346
- \lstset{basicstyle=\ttfamily\footnotesize}
347
- \lstset{language={}}
348
-
349
- \begin{lstlisting}
350
- - Red
351
- - Green
352
- - Blue
353
-
354
- \end{lstlisting}Ordered lists use numbers followed by periods:
355
-
356
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
357
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
358
- \lstset{basicstyle=\ttfamily\footnotesize}
359
- \lstset{language={}}
360
-
361
- \begin{lstlisting}
362
- 1. Bird
363
- 2. McHale
364
- 3. Parish
365
-
366
- \end{lstlisting}It's important to note that the actual numbers you use to mark the list have no effect on the HTML output Markdown produces. The HTML Markdown produces from the above list is:
367
-
368
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
369
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
370
- \lstset{basicstyle=\ttfamily\footnotesize}
371
- \lstset{language=html}
372
-
373
- \begin{lstlisting}
374
- <ol>
375
- <li>Bird</li>
376
- <li>McHale</li>
377
- <li>Parish</li>
378
- </ol>
379
-
380
- \end{lstlisting}If you instead wrote the list in Markdown like this:
381
-
382
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
383
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
384
- \lstset{basicstyle=\ttfamily\footnotesize}
385
- \lstset{language={}}
386
-
387
- \begin{lstlisting}
388
- 1. Bird
389
- 1. McHale
390
- 1. Parish
391
-
392
- \end{lstlisting}or even:
393
-
394
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
395
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
396
- \lstset{basicstyle=\ttfamily\footnotesize}
397
- \lstset{language={}}
398
-
399
- \begin{lstlisting}
400
- 3. Bird
401
- 1. McHale
402
- 8. Parish
403
-
404
- \end{lstlisting}you'd get the exact same HTML output. The point is, if you want to, you can use ordinal numbers in your ordered Markdown lists, so that the numbers in your source match the numbers in your published HTML. But if you want to be lazy, you don't have to.
405
-
406
- If you do use lazy list numbering, however, you should still start the list with the number 1. At some point in the future, Markdown may support starting ordered lists at an arbitrary number.
407
-
408
- List markers typically start at the left margin, but may be indented by up to three spaces. List markers must be followed by one or more spaces or a tab.
409
-
410
- To make lists look nice, you can wrap items with hanging indents:
411
-
412
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
413
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
414
- \lstset{basicstyle=\ttfamily\footnotesize}
415
- \lstset{language={}}
416
-
417
- \begin{lstlisting}
418
- * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
419
- Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
420
- viverra nec, fringilla in, laoreet vitae, risus.
421
- * Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
422
- Suspendisse id sem consectetuer libero luctus adipiscing.
423
-
424
- \end{lstlisting}But if you want to be lazy, you don't have to:
425
-
426
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
427
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
428
- \lstset{basicstyle=\ttfamily\footnotesize}
429
- \lstset{language={}}
430
-
431
- \begin{lstlisting}
432
- * Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
433
- Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
434
- viverra nec, fringilla in, laoreet vitae, risus.
435
- * Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
436
- Suspendisse id sem consectetuer libero luctus adipiscing.
437
-
438
- \end{lstlisting}If list items are separated by blank lines, Markdown will wrap the items in \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char112\char62} tags in the HTML output. For example, this input:
439
-
440
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
441
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
442
- \lstset{basicstyle=\ttfamily\footnotesize}
443
- \lstset{language={}}
444
-
445
- \begin{lstlisting}
446
- * Bird
447
- * Magic
448
-
449
- \end{lstlisting}will turn into:
450
-
451
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
452
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
453
- \lstset{basicstyle=\ttfamily\footnotesize}
454
- \lstset{language=html}
455
-
456
- \begin{lstlisting}
457
- <ul>
458
- <li>Bird</li>
459
- <li>Magic</li>
460
- </ul>
461
-
462
- \end{lstlisting}But this:
463
-
464
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
465
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
466
- \lstset{basicstyle=\ttfamily\footnotesize}
467
- \lstset{language={}}
468
-
469
- \begin{lstlisting}
470
- * Bird
471
-
472
- * Magic
473
-
474
- \end{lstlisting}will turn into:
475
-
476
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
477
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
478
- \lstset{basicstyle=\ttfamily\footnotesize}
479
- \lstset{language=html}
480
-
481
- \begin{lstlisting}
482
- <ul>
483
- <li><p>Bird</p></li>
484
- <li><p>Magic</p></li>
485
- </ul>
486
-
487
- \end{lstlisting}List items may consist of multiple paragraphs. Each subsequent paragraph in a list item must be intended by either 4 spaces or one tab:
488
-
489
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
490
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
491
- \lstset{basicstyle=\ttfamily\footnotesize}
492
- \lstset{language={}}
493
-
494
- \begin{lstlisting}
495
- 1. This is a list item with two paragraphs. Lorem ipsum dolor
496
- sit amet, consectetuer adipiscing elit. Aliquam hendrerit
497
- mi posuere lectus.
498
-
499
- Vestibulum enim wisi, viverra nec, fringilla in, laoreet
500
- vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
501
- sit amet velit.
502
-
503
- 2. Suspendisse id sem consectetuer libero luctus adipiscing.
504
-
505
- \end{lstlisting}It looks nice if you indent every line of the subsequent paragraphs, but here again, Markdown will allow you to be lazy:
506
-
507
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
508
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
509
- \lstset{basicstyle=\ttfamily\footnotesize}
510
- \lstset{language={}}
511
-
512
- \begin{lstlisting}
513
- * This is a list item with two paragraphs.
514
-
515
- This is the second paragraph in the list item. You're
516
- only required to indent the first line. Lorem ipsum dolor
517
- sit amet, consectetuer adipiscing elit.
518
-
519
- * Another item in the same list.
520
-
521
- \end{lstlisting}To put a blockquote within a list item, the blockquote's \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char62} delimiters need to be indented:
522
-
523
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
524
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
525
- \lstset{basicstyle=\ttfamily\footnotesize}
526
- \lstset{language={}}
527
-
528
- \begin{lstlisting}
529
- * A list item with a blockquote:
530
-
531
- > This is a blockquote
532
- > inside a list item.
533
-
534
- \end{lstlisting}To put a code block within a list item, the code block needs to be indented {\em twice} -- 8 spaces or two tabs:
535
-
536
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
537
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
538
- \lstset{basicstyle=\ttfamily\footnotesize}
539
- \lstset{language={}}
540
-
541
- \begin{lstlisting}
542
- * A list item with a code block:
543
-
544
- <code goes here>
545
-
546
-
547
- \end{lstlisting}It's worth noting that it's possible to trigger an ordered list by accident, by writing something like this:
548
-
549
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
550
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
551
- \lstset{basicstyle=\ttfamily\footnotesize}
552
- \lstset{language={}}
553
-
554
- \begin{lstlisting}
555
- 1986. What a great season.
556
-
557
- \end{lstlisting}In other words, a {\em number-period-space} sequence at the beginning of a line. To avoid this, you can backslash-escape the period:
558
-
559
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
560
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
561
- \lstset{basicstyle=\ttfamily\footnotesize}
562
- \lstset{language={}}
563
-
564
- \begin{lstlisting}
565
- 1986\\. What a great season.
566
-
567
-
568
-
569
- \end{lstlisting}\hypertarget{precode}{}\subsubsection*{{Code Blocks}}
570
-
571
- Pre-formatted code blocks are used for writing about programming or markup source code. Rather than forming normal paragraphs, the lines of a code block are interpreted literally. Markdown wraps a code block in both \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char112\char114\char101\char62} and \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char99\char111\char100\char101\char62} tags.
572
-
573
- To produce a code block in Markdown, simply indent every line of the block by at least 4 spaces or 1 tab. For example, given this input:
574
-
575
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
576
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
577
- \lstset{basicstyle=\ttfamily\footnotesize}
578
- \lstset{language={}}
579
-
580
- \begin{lstlisting}
581
- This is a normal paragraph:
582
-
583
- This is a code block.
584
-
585
- \end{lstlisting}Markdown will generate:
586
-
587
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
588
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
589
- \lstset{basicstyle=\ttfamily\footnotesize}
590
- \lstset{language=html}
591
-
592
- \begin{lstlisting}
593
- <p>This is a normal paragraph:</p>
594
-
595
- <pre><code>This is a code block.
596
- </code></pre>
597
-
598
- \end{lstlisting}One level of indentation -- 4 spaces or 1 tab -- is removed from each line of the code block. For example, this:
599
-
600
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
601
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
602
- \lstset{basicstyle=\ttfamily\footnotesize}
603
- \lstset{language={}}
604
-
605
- \begin{lstlisting}
606
- Here is an example of AppleScript:
607
-
608
- tell application "Foo"
609
- beep
610
- end tell
611
-
612
- \end{lstlisting}will turn into:
613
-
614
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
615
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
616
- \lstset{basicstyle=\ttfamily\footnotesize}
617
- \lstset{language=html}
618
-
619
- \begin{lstlisting}
620
- <p>Here is an example of AppleScript:</p>
621
-
622
- <pre><code>tell application "Foo"
623
- beep
624
- end tell
625
- </code></pre>
626
-
627
- \end{lstlisting}A code block continues until it reaches a line that is not indented (or the end of the article).
628
-
629
- Within a code block, ampersands (\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char38}) and angle brackets (\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60} and \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char62}) are automatically converted into HTML entities. This makes it very easy to include example HTML source code using Markdown -- just paste it and indent it, and Markdown will handle the hassle of encoding the ampersands and angle brackets. For example, this:
630
-
631
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
632
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
633
- \lstset{basicstyle=\ttfamily\footnotesize}
634
- \lstset{language={}}
635
-
636
- \begin{lstlisting}
637
- <div class="footer">
638
- &copy; 2004 Foo Corporation
639
- </div>
640
-
641
- \end{lstlisting}will turn into:
642
-
643
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
644
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
645
- \lstset{basicstyle=\ttfamily\footnotesize}
646
- \lstset{language=html}
647
-
648
- \begin{lstlisting}
649
- <pre><code>&lt;div class="footer"&gt;
650
- &amp;copy; 2004 Foo Corporation
651
- &lt;/div&gt;
652
- </code></pre>
653
-
654
- \end{lstlisting}Regular Markdown syntax is not processed within code blocks. E.g., asterisks are just literal asterisks within a code block. This means it's also easy to use Markdown to write about Markdown's own syntax.
655
-
656
- \hypertarget{hr}{}\subsubsection*{{Horizontal Rules}}
657
-
658
- You can produce a horizontal rule tag (\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char104\char114\char32\char47\char62}) by placing three or more hyphens or asterisks on a line by themselves. If you wish, you may use spaces between the hyphens or asterisks. Each of the following lines will produce a horizontal rule:
659
-
660
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
661
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
662
- \lstset{basicstyle=\ttfamily\footnotesize}
663
- \lstset{language={}}
664
-
665
- \begin{lstlisting}
666
- * * *
667
-
668
- ***
669
-
670
- *****
671
-
672
- - - -
673
-
674
- ---------------------------------------
675
-
676
-
677
- \end{lstlisting}
678
- \vspace{.5em} \hrule \vspace{.5em}
679
- \hypertarget{span}{}\subsection*{{Span Elements}}
680
-
681
- \hypertarget{link}{}\subsubsection*{{Links}}
682
-
683
- Markdown supports two style of links: {\em inline} and {\em reference}.
684
-
685
- In both styles, the link text is delimited by [square brackets].
686
-
687
- To create an inline link, use a set of regular parentheses immediately after the link text's closing square bracket. Inside the parentheses, put the URL where you want the link to point, along with an {\em optional} title for the link, surrounded in quotes. For example:
688
-
689
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
690
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
691
- \lstset{basicstyle=\ttfamily\footnotesize}
692
- \lstset{language={}}
693
-
694
- \begin{lstlisting}
695
- This is [an example](http://example.com/ "Title") inline link.
696
-
697
- [This link](http://example.net/) has no title attribute.
698
-
699
- \end{lstlisting}Will produce:
700
-
701
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
702
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
703
- \lstset{basicstyle=\ttfamily\footnotesize}
704
- \lstset{language=html}
705
-
706
- \begin{lstlisting}
707
- <p>This is <a href="http://example.com/" title="Title">
708
- an example</a> inline link.</p>
709
-
710
- <p><a href="http://example.net/">This link</a> has no
711
- title attribute.</p>
712
-
713
- \end{lstlisting}If you're referring to a local resource on the same server, you can use relative paths:
714
-
715
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
716
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
717
- \lstset{basicstyle=\ttfamily\footnotesize}
718
- \lstset{language={}}
719
-
720
- \begin{lstlisting}
721
- See my [About](/about/) page for details.
722
-
723
- \end{lstlisting}Reference-style links use a second set of square brackets, inside which you place a label of your choosing to identify the link:
724
-
725
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
726
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
727
- \lstset{basicstyle=\ttfamily\footnotesize}
728
- \lstset{language={}}
729
-
730
- \begin{lstlisting}
731
- This is [an example][id] reference-style link.
732
-
733
- \end{lstlisting}You can optionally use a space to separate the sets of brackets:
734
-
735
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
736
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
737
- \lstset{basicstyle=\ttfamily\footnotesize}
738
- \lstset{language={}}
739
-
740
- \begin{lstlisting}
741
- This is [an example] [id] reference-style link.
742
-
743
- \end{lstlisting}Then, anywhere in the document, you define your link label like this, on a line by itself:
744
-
745
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
746
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
747
- \lstset{basicstyle=\ttfamily\footnotesize}
748
- \lstset{language={}}
749
-
750
- \begin{lstlisting}
751
- [id]: http://example.com/ "Optional Title Here"
752
-
753
- \end{lstlisting}That is:
754
-
755
- \begin{itemize}%
756
- \item Square brackets containing the link identifier (optionally indented from the left margin using spaces or tabs);
757
- \item followed by a colon;
758
- \item followed by one or more spaces (or tabs);
759
- \item followed by the URL for the link;
760
- \item optionally followed by a title attribute for the link, enclosed in double or single quotes, or enclosed in parentheses.
761
-
762
- \end{itemize}
763
- The following three link definitions are equivalent:
764
-
765
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
766
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
767
- \lstset{basicstyle=\ttfamily\footnotesize}
768
- \lstset{language={}}
769
-
770
- \begin{lstlisting}
771
- [foo]: http://example.com/ "Optional Title Here"
772
- [foo]: http://example.com/ 'Optional Title Here'
773
- [foo]: http://example.com/ (Optional Title Here)
774
-
775
- \end{lstlisting}{\bf Note:} There is a known bug in Markdown 1.0.1 which prevents single quotes from being used to delimit link titles.
776
-
777
- The link URL may, optionally, be surrounded by angle brackets:
778
-
779
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
780
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
781
- \lstset{basicstyle=\ttfamily\footnotesize}
782
- \lstset{language={}}
783
-
784
- \begin{lstlisting}
785
- [id]: <http://example.com/> "Optional Title Here"
786
-
787
- \end{lstlisting}You can put the title attribute on the next line and use extra spaces or tabs for padding, which tends to look better with longer URLs:
788
-
789
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
790
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
791
- \lstset{basicstyle=\ttfamily\footnotesize}
792
- \lstset{language={}}
793
-
794
- \begin{lstlisting}
795
- [id]: http://example.com/longish/path/to/resource/here
796
- "Optional Title Here"
797
-
798
- \end{lstlisting}Link definitions are only used for creating links during Markdown processing, and are stripped from your document in the HTML output.
799
-
800
- Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are {\em not} case sensitive. E.g. these two links:
801
-
802
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
803
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
804
- \lstset{basicstyle=\ttfamily\footnotesize}
805
- \lstset{language={}}
806
-
807
- \begin{lstlisting}
808
- [link text][a]
809
- [link text][A]
810
-
811
- \end{lstlisting}are equivalent.
812
-
813
- The {\em implicit link name} shortcut allows you to omit the name of the link, in which case the link text itself is used as the name. Just use an empty set of square brackets -- e.g., to link the word "Google" to the google.com web site, you could simply write:
814
-
815
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
816
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
817
- \lstset{basicstyle=\ttfamily\footnotesize}
818
- \lstset{language={}}
819
-
820
- \begin{lstlisting}
821
- [Google][]
822
-
823
- \end{lstlisting}And then define the link:
824
-
825
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
826
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
827
- \lstset{basicstyle=\ttfamily\footnotesize}
828
- \lstset{language={}}
829
-
830
- \begin{lstlisting}
831
- [Google]: http://google.com/
832
-
833
- \end{lstlisting}Because link names may contain spaces, this shortcut even works for multiple words in the link text:
834
-
835
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
836
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
837
- \lstset{basicstyle=\ttfamily\footnotesize}
838
- \lstset{language={}}
839
-
840
- \begin{lstlisting}
841
- Visit [Daring Fireball][] for more information.
842
-
843
- \end{lstlisting}And then define the link:
844
-
845
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
846
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
847
- \lstset{basicstyle=\ttfamily\footnotesize}
848
- \lstset{language={}}
849
-
850
- \begin{lstlisting}
851
-
852
- [Daring Fireball]: http://daringfireball.net/
853
-
854
- \end{lstlisting}Link definitions can be placed anywhere in your Markdown document. I tend to put them immediately after each paragraph in which they're used, but if you want, you can put them all at the end of your document, sort of like footnotes.
855
-
856
- Here's an example of reference links in action:
857
-
858
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
859
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
860
- \lstset{basicstyle=\ttfamily\footnotesize}
861
- \lstset{language={}}
862
-
863
- \begin{lstlisting}
864
- I get 10 times more traffic from [Google] [1] than from
865
- [Yahoo] [2] or [MSN] [3].
866
-
867
- [1]: http://google.com/ "Google"
868
- [2]: http://search.yahoo.com/ "Yahoo Search"
869
- [3]: http://search.msn.com/ "MSN Search"
870
-
871
- \end{lstlisting}Using the implicit link name shortcut, you could instead write:
872
-
873
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
874
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
875
- \lstset{basicstyle=\ttfamily\footnotesize}
876
- \lstset{language={}}
877
-
878
- \begin{lstlisting}
879
- I get 10 times more traffic from [Google][] than from
880
- [Yahoo][] or [MSN][].
881
-
882
- [google]: http://google.com/ "Google"
883
- [yahoo]: http://search.yahoo.com/ "Yahoo Search"
884
- [msn]: http://search.msn.com/ "MSN Search"
885
-
886
- \end{lstlisting}Both of the above examples will produce the following HTML output:
887
-
888
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
889
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
890
- \lstset{basicstyle=\ttfamily\footnotesize}
891
- \lstset{language={}}
892
-
893
- \begin{lstlisting}
894
- <p>I get 10 times more traffic from <a href="http://google.com/"
895
- title="Google">Google</a> than from
896
- <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a>
897
- or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
898
-
899
- \end{lstlisting}For comparison, here is the same paragraph written using Markdown's inline link style:
900
-
901
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
902
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
903
- \lstset{basicstyle=\ttfamily\footnotesize}
904
- \lstset{language={}}
905
-
906
- \begin{lstlisting}
907
- I get 10 times more traffic from [Google](http://google.com/ "Google")
908
- than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
909
- [MSN](http://search.msn.com/ "MSN Search").
910
-
911
- \end{lstlisting}The point of reference-style links is not that they're easier to write. The point is that with reference-style links, your document source is vastly more readable. Compare the above examples: using reference-style links, the paragraph itself is only 81 characters long; with inline-style links, it's 176 characters; and as raw HTML, it's 234 characters. In the raw HTML, there's more markup than there is text.
912
-
913
- With Markdown's reference-style links, a source document much more closely resembles the final output, as rendered in a browser. By allowing you to move the markup-related metadata out of the paragraph, you can add links without interrupting the narrative flow of your prose.
914
-
915
- \hypertarget{em}{}\subsubsection*{{Emphasis}}
916
-
917
- Markdown treats asterisks (\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char42}) and underscores (\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char95}) as indicators of emphasis. Text wrapped with one \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char42} or \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char95} will be wrapped with an HTML \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char101\char109\char62} tag; double \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char42}'s or \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char95}'s will be wrapped with an HTML \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char115\char116\char114\char111\char110\char103\char62} tag. E.g., this input:
918
-
919
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
920
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
921
- \lstset{basicstyle=\ttfamily\footnotesize}
922
- \lstset{language={}}
923
-
924
- \begin{lstlisting}
925
- *single asterisks*
926
-
927
- _single underscores_
928
-
929
- **double asterisks**
930
-
931
- __double underscores__
932
-
933
- \end{lstlisting}will produce:
934
-
935
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
936
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
937
- \lstset{basicstyle=\ttfamily\footnotesize}
938
- \lstset{language=html}
939
-
940
- \begin{lstlisting}
941
- <em>single asterisks</em>
942
-
943
- <em>single underscores</em>
944
-
945
- <strong>double asterisks</strong>
946
-
947
- <strong>double underscores</strong>
948
-
949
- \end{lstlisting}You can use whichever style you prefer; the lone restriction is that the same character must be used to open and close an emphasis span.
950
-
951
- Emphasis can be used in the middle of a word:
952
-
953
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
954
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
955
- \lstset{basicstyle=\ttfamily\footnotesize}
956
- \lstset{language={}}
957
-
958
- \begin{lstlisting}
959
- un*fucking*believable
960
-
961
- \end{lstlisting}But if you surround an \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char42} or \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char95} with spaces, it'll be treated as a literal asterisk or underscore.
962
-
963
- To produce a literal asterisk or underscore at a position where it would otherwise be used as an emphasis delimiter, you can backslash escape it:
964
-
965
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
966
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
967
- \lstset{basicstyle=\ttfamily\footnotesize}
968
- \lstset{language={}}
969
-
970
- \begin{lstlisting}
971
- \*this text is surrounded by literal asterisks\*
972
-
973
-
974
-
975
- \end{lstlisting}\hypertarget{code}{}\subsubsection*{{Code}}
976
-
977
- To indicate a span of code, wrap it with backtick quotes (\colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char32\char96\char32}). Unlike a pre-formatted code block, a code span indicates code within a normal paragraph. For example:
978
-
979
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
980
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
981
- \lstset{basicstyle=\ttfamily\footnotesize}
982
- \lstset{language={}}
983
-
984
- \begin{lstlisting}
985
- Use the `printf()` function.
986
-
987
- \end{lstlisting}will produce:
988
-
989
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
990
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
991
- \lstset{basicstyle=\ttfamily\footnotesize}
992
- \lstset{language=html}
993
-
994
- \begin{lstlisting}
995
- <p>Use the <code>printf()</code> function.</p>
996
-
997
- \end{lstlisting}To include a literal backtick character within a code span, you can backslash escape it:
998
-
999
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1000
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1001
- \lstset{basicstyle=\ttfamily\footnotesize}
1002
- \lstset{language={}}
1003
-
1004
- \begin{lstlisting}
1005
- `There is a literal backtick (\\`) here.`
1006
-
1007
- \end{lstlisting}Or, if you prefer, you can use multiple backticks as the opening and closing delimiters:
1008
-
1009
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1010
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1011
- \lstset{basicstyle=\ttfamily\footnotesize}
1012
- \lstset{language={}}
1013
-
1014
- \begin{lstlisting}
1015
- ``There is a literal backtick (`) here.``
1016
-
1017
- \end{lstlisting}Both of the previous two examples will produce this:
1018
-
1019
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1020
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1021
- \lstset{basicstyle=\ttfamily\footnotesize}
1022
- \lstset{language=html}
1023
-
1024
- \begin{lstlisting}
1025
- <p><code>There is a literal backtick (`) here.</code></p>
1026
-
1027
- \end{lstlisting}With a code span, ampersands and angle brackets are encoded as HTML entities automatically, which makes it easy to include example HTML tags. Markdown will turn this:
1028
-
1029
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1030
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1031
- \lstset{basicstyle=\ttfamily\footnotesize}
1032
- \lstset{language={}}
1033
-
1034
- \begin{lstlisting}
1035
- Please don't use any `<blink>` tags.
1036
-
1037
- \end{lstlisting}into:
1038
-
1039
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1040
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1041
- \lstset{basicstyle=\ttfamily\footnotesize}
1042
- \lstset{language=html}
1043
-
1044
- \begin{lstlisting}
1045
- <p>Please don't use any <code>&lt;blink&gt;</code> tags.</p>
1046
-
1047
- \end{lstlisting}You can write this:
1048
-
1049
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1050
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1051
- \lstset{basicstyle=\ttfamily\footnotesize}
1052
- \lstset{language={}}
1053
-
1054
- \begin{lstlisting}
1055
- `&#8212;` is the decimal-encoded equivalent of `&mdash;`.
1056
-
1057
- \end{lstlisting}to produce:
1058
-
1059
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1060
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1061
- \lstset{basicstyle=\ttfamily\footnotesize}
1062
- \lstset{language=html}
1063
-
1064
- \begin{lstlisting}
1065
- <p><code>&amp;#8212;</code> is the decimal-encoded
1066
- equivalent of <code>&amp;mdash;</code>.</p>
1067
-
1068
-
1069
-
1070
- \end{lstlisting}\hypertarget{img}{}\subsubsection*{{Images}}
1071
-
1072
- Admittedly, it's fairly difficult to devise a "natural" syntax for placing images into a plain text document format.
1073
-
1074
- Markdown uses an image syntax that is intended to resemble the syntax for links, allowing for two styles: {\em inline} and {\em reference}.
1075
-
1076
- Inline image syntax looks like this:
1077
-
1078
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1079
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1080
- \lstset{basicstyle=\ttfamily\footnotesize}
1081
- \lstset{language={}}
1082
-
1083
- \begin{lstlisting}
1084
- ![Alt text](/path/to/img.jpg)
1085
-
1086
- ![Alt text](/path/to/img.jpg "Optional title")
1087
-
1088
- \end{lstlisting}That is:
1089
-
1090
- \begin{itemize}%
1091
- \item An exclamation mark: \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char33};
1092
- \item followed by a set of square brackets, containing the \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char97\char108\char116} attribute text for the image;
1093
- \item followed by a set of parentheses, containing the URL or path to the image, and an optional \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char116\char105\char116\char108\char101} attribute enclosed in double or single quotes.
1094
-
1095
- \end{itemize}
1096
- Reference-style image syntax looks like this:
1097
-
1098
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1099
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1100
- \lstset{basicstyle=\ttfamily\footnotesize}
1101
- \lstset{language={}}
1102
-
1103
- \begin{lstlisting}
1104
- ![Alt text][id]
1105
-
1106
- \end{lstlisting}Where "id" is the name of a defined image reference. Image references are defined using syntax identical to link references:
1107
-
1108
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1109
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1110
- \lstset{basicstyle=\ttfamily\footnotesize}
1111
- \lstset{language={}}
1112
-
1113
- \begin{lstlisting}
1114
- [id]: url/to/image "Optional title attribute"
1115
-
1116
- \end{lstlisting}As of this writing, Markdown has no syntax for specifying the dimensions of an image; if this is important to you, you can simply use regular HTML \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char105\char109\char103\char62} tags.
1117
-
1118
-
1119
- \vspace{.5em} \hrule \vspace{.5em}
1120
- \hypertarget{misc}{}\subsection*{{Miscellaneous}}
1121
-
1122
- \hypertarget{autolink}{}\subsubsection*{{Automatic Links}}
1123
-
1124
- Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
1125
-
1126
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1127
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1128
- \lstset{basicstyle=\ttfamily\footnotesize}
1129
- \lstset{language={}}
1130
-
1131
- \begin{lstlisting}
1132
- <http://example.com/>
1133
- \end{lstlisting}Markdown will turn this into:
1134
-
1135
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1136
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1137
- \lstset{basicstyle=\ttfamily\footnotesize}
1138
- \lstset{language=html}
1139
-
1140
- \begin{lstlisting}
1141
- <a href="http://example.com/">http://example.com/</a>
1142
-
1143
- \end{lstlisting}Automatic links for email addresses work similarly, except that Markdown will also perform a bit of randomized decimal and hex entity-encoding to help obscure your address from address-harvesting spambots. For example, Markdown will turn this:
1144
-
1145
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1146
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1147
- \lstset{basicstyle=\ttfamily\footnotesize}
1148
- \lstset{language={}}
1149
-
1150
- \begin{lstlisting}
1151
- <address@example.com>
1152
-
1153
- \end{lstlisting}into something like this:
1154
-
1155
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1156
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1157
- \lstset{basicstyle=\ttfamily\footnotesize}
1158
- \lstset{language=html}
1159
-
1160
- \begin{lstlisting}
1161
- <a href="&#x6D;&#x61;i&#x6C;&#x74;&#x6F;:&#x61;&#x64;&#x64;&#x72;&#x65;
1162
- &#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;
1163
- &#109;">&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;
1164
- &#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;</a>
1165
-
1166
- \end{lstlisting}which will render in a browser as a clickable link to "address@example.com".
1167
-
1168
- (This sort of entity-encoding trick will indeed fool many, if not most, address-harvesting bots, but it definitely won't fool all of them. It's better than nothing, but an address published in this way will probably eventually start receiving spam.)
1169
-
1170
- \hypertarget{backslash}{}\subsubsection*{{Backslash Escapes}}
1171
-
1172
- Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special meaning in Markdown's formatting syntax. For example, if you wanted to surround a word with literal asterisks (instead of an HTML \colorbox[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}{\tt \char60\char101\char109\char62} tag), you can backslashes before the asterisks, like this:
1173
-
1174
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1175
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1176
- \lstset{basicstyle=\ttfamily\footnotesize}
1177
- \lstset{language={}}
1178
-
1179
- \begin{lstlisting}
1180
- \*literal asterisks\*
1181
-
1182
- \end{lstlisting}Markdown provides backslash escapes for the following characters:
1183
-
1184
- \lstset{columns=fixed,frame=shadowbox}\lstset{showspaces=false,showtabs=false}
1185
- \lstset{backgroundcolor=\color[rgb]{0.941176470588235,0.941176470588235,0.87843137254902}}
1186
- \lstset{basicstyle=\ttfamily\footnotesize}
1187
- \lstset{language={}}
1188
-
1189
- \begin{lstlisting}
1190
- \ backslash
1191
- ` backtick
1192
- * asterisk
1193
- _ underscore
1194
- {} curly braces
1195
- [] square brackets
1196
- () parentheses
1197
- # hash mark
1198
- . dot
1199
- ! exclamation mark
1200
-
1201
- \end{lstlisting}
1202
- \end{document}