Skip to content

Commit

Permalink
added some more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Aug 1, 2024
1 parent 4726714 commit e2d7ec4
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/data/attribute-class-in.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{class="some-class(value)"}
[Some text here!](/link){class="link(variant)" target="_blank"}

{.-hello}
Some text

{.smile-😎 .yolo}
Some text

{id="smile-😎"}
Some text
4 changes: 4 additions & 0 deletions tests/data/attribute-class-out.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<p class="some-class(value)"><a class="link(variant)" target="_blank" href="/link" rel="noopener noreferrer">Some text here!</a></p>
<p class="-hello">Some text</p>
<p class="smile-😎 yolo">Some text</p>
<p id="smile-😎">Some text</p>
11 changes: 11 additions & 0 deletions tests/data/attribute-class-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{.some-class(value)}
[Some text here!](/link){.link(variant) target="_blank"}

{.-hello}
Some text

{.smile-😎 .yolo}
Some text

{#smile-😎}
Some text
6 changes: 6 additions & 0 deletions tests/data/ordered_lists-in.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. one
1. two
1. three
1. three dot one
1. three dot two
1. four
11 changes: 11 additions & 0 deletions tests/data/ordered_lists-out.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<ol>
<li>one</li>
<li>two</li>
<li>three
<ol>
<li>three dot one</li>
<li>three dot two</li>
</ol>
</li>
<li>four</li>
</ol>
6 changes: 6 additions & 0 deletions tests/data/ordered_lists-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. one
2. two
3. three
1. three dot one
2. three dot two
4. four
6 changes: 6 additions & 0 deletions tests/data/pre-broken-in.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<p>Header</p>
<pre><code>Some code

Broken

<p>Footer</p>
6 changes: 6 additions & 0 deletions tests/data/pre-broken-out.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<p>Header</p>
<pre><code>Some code

Broken

<p>Footer</p></code></pre>
7 changes: 7 additions & 0 deletions tests/data/pre-broken-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Header

<pre><code>Some code

Broken

<p>Footer</p></code></pre>

0 comments on commit e2d7ec4

Please sign in to comment.