]> git.madduck.net Git - etc/vim.git/blob - test/syntax.md

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge pull request #67 from xiaket/master
[etc/vim.git] / test / syntax.md
1 # Original markdown
2
3 This section covers only features from the [original markdown](daringfireball.net/projects/markdown/syntax), in the same order that they are defined on the specification.
4
5 Extensions will be tested on a separate section.
6
7 ## Paragraphs
8
9 Paragraph.
10
11 Line  
12 break.
13
14 ## Headers
15
16 The following should be highlighted as headers:
17
18 # h1
19
20  # h1
21
22 # h1 #
23
24 h1
25 ==
26
27 ## h2
28
29 ## h2 ##
30
31 h2
32 --
33
34 ### h3
35
36 #### h4
37
38 ##### h5
39
40 ###### h6
41
42 The following is unspecified by Markdown and may not highlight properly:
43
44 ####### h7
45
46 ## Blockquotes
47
48 > Block quote
49
50 > First line only
51 block quote
52
53 > Block quote
54 > > Block quote level 2
55
56 > # Markdown inside block quote
57 >
58 > [Link text](link-url)
59
60 ## Lists
61
62 Only the list marker should be highlighted:
63
64 * 0
65 * 1
66
67 + 0
68 + 1
69
70 - 0
71 - 1
72
73 1. 0
74 2. 1
75
76 *Not* lists:
77
78 1 0
79
80  - 0
81
82 ## Links
83
84 [Link text](link-url)
85
86 Reference style link: [Link text][reference]
87
88 With space: [Link text] [reference]
89
90 [reference]: address
91 [reference2]: address "Optional Title"
92
93 ## Code blocks
94
95 Inline: `inline code`
96
97 Indented:
98
99     indented code block
100
101     # not a header
102
103     - not a list
104
105 Indented code block and lists:
106
107 - 0
108
109     Paragraph.
110
111         indented code block inside list
112
113 - 0
114
115     - 1
116
117         Paragraph (TODO FAIL).
118
119             indented code block inside list
120
121 ## Emphasis
122
123 The following should be italicized:
124
125 *single asterisks*
126
127 _single underscores_
128
129 The following should be boldface:
130
131 **double asterisks**
132
133 __double underscores__
134
135 # Extensions
136
137 Fenced code blocks TODO add option to turn ON/OFF:
138
139 ```
140 fenced code block
141 ```
142
143 Fenced code living in an indented environment is correctly highlighted:
144
145 1. run this command to do this:
146
147     ```
148 some command
149     ```
150
151 2. Subsequent list items are correctly highlighted.
152
153 Fenced code block with language:
154
155 ```ruby
156 def f
157   0
158 end
159 ```