forked from SublimeText-Markdown/MarkdownEditing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create some Markdown files for testing
- Loading branch information
Showing
2 changed files
with
100 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Strikethrough | ||
|
||
Below text should be parsed as _strikethroughed_. | ||
|
||
~~ Mistaken text. ~~ | ||
|
||
# Fenced Code Blocks | ||
|
||
## In / Near List Items | ||
|
||
Below fenced code blocks _should_ be highlighted. | ||
|
||
--- | ||
|
||
* List item | ||
|
||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
* List item | ||
|
||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
--- | ||
|
||
Below are _not_ valid fenced code blocks according to the [GFM docs][GFM]. It says there must be a blank line before the code block. However, GitHub highlights them. So, they _should_ be highlighted. | ||
|
||
--- | ||
|
||
* List item | ||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
* List item | ||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
## In / Near Paragraphs | ||
|
||
Below is _not_ a _fenced_ code block, just a normal code block. | ||
|
||
--- | ||
|
||
Paragraph | ||
|
||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
--- | ||
|
||
Below 2 blocks are fenced code blocks. They _should_ be highlighted. | ||
|
||
--- | ||
|
||
Paragraph | ||
|
||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
Paragraph | ||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
--- | ||
|
||
Below is not any type of code block. It _should not_ be highlighted. | ||
|
||
--- | ||
|
||
Paragraph | ||
```js | ||
for (var i = 0; i < 10; i++) { | ||
console.log(i); | ||
} | ||
``` | ||
|
||
[GFM]: https://help.github.com/articles/github-flavored-markdown |
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 @@ | ||
These are some example files to test if the syntax highlighting works correctly. They include some edge cases, too. |