-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Support for <mark> in Markdown (issue #1261)
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Issue: #1261: Feature: Support for <mark> in Markdown | ||
|
||
|
||
Given vimwiki (Single line mark): | ||
<mark>Single line</mark> | ||
01234567890 | ||
|
||
|
||
Execute (Set syntax markdown): | ||
call SetSyntax('markdown') | ||
|
||
|
||
Execute (Assert all is yaml except after the closing ---): | ||
AssertEqual 'VimwikiMarkTag1', GetSyntaxStack(1, 7)[0] . 1 | ||
AssertEqual '02', len(GetSyntaxStack(2, 7)) . 2 | ||
|
||
|
||
Given vimwiki (Multiple line mark): | ||
<mark>Start | ||
Multiple | ||
Line | ||
end</mark> | ||
01234567890 | ||
|
||
|
||
Execute (Set syntax markdown): | ||
call SetSyntax('markdown') | ||
|
||
|
||
Execute (Assert all is yaml except after the closing ---): | ||
AssertEqual 'VimwikiMarkTag1', GetSyntaxStack(1, 7)[0] . 1 | ||
AssertEqual 'VimwikiMarkTag2', GetSyntaxStack(2, 2)[0] . 2 | ||
AssertEqual 'VimwikiMarkTag3', GetSyntaxStack(3, 2)[0] . 3 | ||
AssertEqual 'VimwikiMarkTag4', GetSyntaxStack(4, 2)[0] . 4 | ||
AssertEqual '05', len(GetSyntaxStack(5, 7)) . 5 |