]> git.madduck.net Git - etc/vim.git/blobdiff - 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 #134 from cirosantilli/readme-uniform-codeblocks
[etc/vim.git] / test / syntax.md
index 9c849e7970c77544113dad08333d3bf2cef05389..d031c2f745c2ca45e64208a63588177c958b7a33 100644 (file)
-# Original markdown
-
-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.
-
-Extensions will be tested on a separate section.
-
-## Paragraphs
-
-Paragraph.
-
-Line  
-break.
-
-## Headers
-
-The following should be highlighted as headers:
-
-# h1
-
- # h1
-
-# h1 #
-
-h1
-==
-
-## h2
-
-## h2 ##
-
-h2
---
-
-### h3
-
-#### h4
-
-##### h5
-
-###### h6
-
-The following is unspecified by Markdown and may not highlight properly:
-
-####### h7
-
-## Blockquotes
-
-> Block quote
-
-> First line only
-block quote
-
-> Block quote
-> > Block quote level 2
-
-> # Markdown inside block quote
->
-> [Link text](link-url)
-
-## Lists
-
-Only the list marker should be highlighted:
-
-* 0
-* 1
+Fenced code living in an indented environment is correctly highlighted:
 
-+ 0
-+ 1
+1. run this command to do this:
 
-- 0
-- 1
+    ```
+some command
+    ```
 
-1. 0
-2. 1
+2. Subsequent list items are correctly highlighted.
 
-*Not* lists:
+Fenced code block with language:
 
-1 0
+```ruby
+def f
+  0
+end
+```
 
- - 0
+# Links
 
-## Links
+[a](b "c")
 
-[Link text](link-url)
+[a]()
 
-Reference style link: [Link text][reference]
+[good spell](a)
 
-With space: [Link text] [reference]
+[badd spell](a)
 
-[reference]: address
-[reference2]: address "Optional Title"
+[a](b "c")
 
-## Code blocks
+[a]( b
+"c" )
 
-Inline: `inline code`
+a (`a`) b. Fix: <https://github.com/plasticboy/vim-markdown/issues/113>
 
-Indented:
+Escaped:
 
-    indented code block
+\[a](b)
 
-    # not a header
+[a\]b](c)
 
-    - not a list
+## Known failures
 
-Indented code block and lists:
+Escape does not work:
 
-- 0
+[a\](b)
 
-    Paragraph.
+Should not be links because of whitespace:
 
-        indented code block inside list
+[a] (b)
 
-- 0
+[a](a
+b)
 
-    - 1
+[a](a b)
 
-        Paragraph (TODO FAIL).
+# Reference links
 
-            indented code block inside list
+Single links:
 
-## Emphasis
+[a][b]
 
-The following should be italicized:
+[good spell][a]
 
-*single asterisks*
+[badd spell][a]
 
-_single underscores_
+[a][]
 
-The following should be boldface:
+[a] []
 
-**double asterisks**
+[a][b] c [d][e]
 
-__double underscores__
+Reference link followed by inline link:
 
-# Extensions
+[a] [b](c)
 
-Fenced code blocks TODO add option to turn ON/OFF:
+## Known failures
 
-```
-fenced code block
-```
+Should be shortcut reference links:
 
-Fenced code living in an indented environment is correctly highlighted:
+[a]
 
-1. run this command to do this:
+[a] b [c]
 
-    ```
-some command
-    ```
+Should be a single link:
 
-2. Subsequent list items are correctly highlighted.
+[a] [b]
 
-Fenced code block with language:
-
-```ruby
-def f
-  0
-end
-```
+[a] b [c](d)