Skip to content

Commit 3ec63d2

Browse files
committed
added GFM fixtures
1 parent 01ad911 commit 3ec63d2

676 files changed

Lines changed: 17879 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use std::path::PathBuf;
2+
use testing::fixture;
3+
4+
#[fixture("tests/fixtures/spec*.md")]
5+
fn test_spec(file: PathBuf) {
6+
let f = dev::read_fixture_file(file);
7+
8+
let parser = &mut markdown_it::MarkdownIt::new();
9+
markdown_it_gfm::add(parser);
10+
let actual = parser.parse(&f.input).xrender();
11+
12+
dev::assert_no_diff(f, &actual);
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Example 493 (https://github.com/rlidwka/markdown-it.rs/issues/29)
2+
......
3+
4+
This will ~~~not~~~ strike.
5+
6+
......
7+
8+
<p>This will ~~~not~~~ strike.</p>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Example 632
2+
......
3+
4+
a.b-c_d@a.b
5+
6+
a.b-c_d@a.b.
7+
8+
a.b-c_d@a.b-
9+
10+
a.b-c_d@a.b_
11+
12+
......
13+
14+
<p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a></p>
15+
<p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a>.</p>
16+
<p>a.b-c_d@a.b-</p>
17+
<p>a.b-c_d@a.b_</p>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Example 1
2+
......
3+
4+
foo baz bim
5+
6+
......
7+
8+
<pre><code>foo baz bim
9+
</code></pre>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Example 2
2+
......
3+
4+
foo baz bim
5+
6+
......
7+
8+
<pre><code>foo baz bim
9+
</code></pre>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Example 3
2+
......
3+
4+
a a
5+
ὐ a
6+
7+
......
8+
9+
<pre><code>a a
10+
ὐ a
11+
</code></pre>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Example 4
2+
......
3+
4+
- foo
5+
6+
bar
7+
8+
......
9+
10+
<ul>
11+
<li>
12+
<p>foo</p>
13+
<p>bar</p>
14+
</li>
15+
</ul>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Example 5
2+
......
3+
4+
- foo
5+
6+
bar
7+
8+
......
9+
10+
<ul>
11+
<li>
12+
<p>foo</p>
13+
<pre><code> bar
14+
</code></pre>
15+
</li>
16+
</ul>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Example 6
2+
......
3+
4+
> foo
5+
6+
......
7+
8+
<blockquote>
9+
<pre><code> foo
10+
</code></pre>
11+
</blockquote>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Example 7
2+
......
3+
4+
- foo
5+
6+
......
7+
8+
<ul>
9+
<li>
10+
<pre><code> foo
11+
</code></pre>
12+
</li>
13+
</ul>

0 commit comments

Comments
 (0)