Skip to content

Commit

Permalink
updated syntax.vader for markdown (from mkd)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Oct 28, 2014
1 parent a65ee37 commit 373db4b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/syntax.vader
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Given mkd;
Given markdown;
a **b** c

Execute (bold):
AssertNotEqual SyntaxOf('a'), 'htmlBold'
AssertEqual SyntaxOf('b'), 'htmlBold'
AssertNotEqual SyntaxOf('c'), 'htmlBold'

Given mkd;
Given markdown;
a *b* c

Execute (italic):
Expand All @@ -16,14 +16,14 @@ Execute (italic):

# Links

Given mkd;
Given markdown;
[a](b)

Execute (link with title):
AssertEqual SyntaxOf('a'), 'mkdLink'
AssertEqual SyntaxOf('b'), 'mkdURL'

Given mkd;
Given markdown;
(a)

(b)
Expand All @@ -32,15 +32,15 @@ Execute (parenthesis not in link):
AssertNotEqual SyntaxOf('a'), 'mkdURL'
AssertNotEqual SyntaxOf('b'), 'mkdURL'

Given mkd;
Given markdown;
[a](b) c [d](e)

Execute (multiple links on a line):
AssertEqual SyntaxOf('c'), ''

# Autolinks

Given mkd;
Given markdown;
a <http://b> c

Execute (autolink):
Expand All @@ -50,25 +50,25 @@ Execute (autolink):
AssertEqual SyntaxOf('>'), 'mkdDelimiter'
AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'

Given mkd;
Given markdown;
<HtTp://a>

Execute (autolink with scheme case is insensitive):
AssertEqual SyntaxOf('a'), 'mkdInlineURL'

Given mkd;
Given markdown;
<notascheme://a>

Execute (autolink without known scheme is not a link):
AssertNotEqual SyntaxOf('n'), 'mkdInlineURL'

Given mkd;
Given markdown;
<a>

Execute (autolink without scheme is not a link):
AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'

Given mkd;
Given markdown;
< http://a >
<http://b c>
<http://d
Expand All @@ -81,15 +81,15 @@ Execute (autolink with space is not a link):
AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'

Given mkd;
Given markdown;
\<http://a>

Execute (autolinks can be backslash escaped):
AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'

# Math

Given mkd;
Given markdown;
a $x$ b
c $$y$$ d
\$e\$
Expand All @@ -113,7 +113,7 @@ Execute (math):
AssertNotEqual SyntaxOf('x'), 'mkdMath'
AssertNotEqual SyntaxOf('y'), 'mkdMath'

Given mkd;
Given markdown;
a

$
Expand All @@ -131,7 +131,7 @@ Execute (multiline math):

# YAML frontmatter

Given mkd;
Given markdown;
---
a: b
---
Expand All @@ -145,7 +145,7 @@ Execute (YAML frontmatter is controlled by the option):
syn off | syn on
AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'

Given mkd;
Given markdown;

---
a: b
Expand All @@ -156,7 +156,7 @@ Execute (YAML frontmatter only works if it's the first thing in the file):
syn off | syn on
AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'

Given mkd;
Given markdown;
---
a: b
---
Expand Down

0 comments on commit 373db4b

Please sign in to comment.