Skip to content

Commit

Permalink
squash 198
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbfled committed Feb 24, 2025
1 parent f29eec7 commit 6f79ce6
Show file tree
Hide file tree
Showing 15 changed files with 115 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_files/html/action_links.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<p><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><img alt="call to action img" src="https://dev-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/vanotify-action-link.png" class="action_link"><b>action link</b></a></p>
<p>An action link is right <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><img alt="call to action img" src="https://dev-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/vanotify-action-link.png" class="action_link"><b>here</b></a>. Yay! Here is another <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><img alt="call to action img" src="https://dev-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/vanotify-action-link.png" class="action_link"><b>Visit The Onion</b></a>.</p>

1 change: 1 addition & 0 deletions tests/test_files/html/block_quotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@
<p>la<br />
ti</p>
</blockquote>
<p>Don't convert n^2 to a block quote.</p>

5 changes: 5 additions & 0 deletions tests/test_files/html/block_quotes_action_link.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<blockquote>
<p><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><img alt="call to action img" src="https://dev-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/vanotify-action-link.png" class="action_link"><b>action link</b></a></p>
</blockquote>
<p><a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><img alt="call to action img" src="https://dev-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/vanotify-action-link.png" class="action_link"><b>action link</b></a></p>
</blockquote>
<blockquote>
<p>Here is an <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"><img alt="call to action img" src="https://dev-va-gov-assets.s3-us-gov-west-1.amazonaws.com/img/vanotify-action-link.png" class="action_link"><b>action link</b></a> in a Github markdown block quote. This text should be on the same line.</p>
</blockquote>
<blockquote>
Expand Down
7 changes: 7 additions & 0 deletions tests/test_files/html/images.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<h1>Images should be removed</h1>
<h2>Inline images</h2>
<h2>Reference images</h2>
<p>The reference is immediately after the image.</p>
<p>The reference is not immediately after the iamge.</p>
<p>This line separates the images from their references.</p>

4 changes: 4 additions & 0 deletions tests/test_files/html/tables.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<p>Colons can be used to align columns.</p>
<p>There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.</p>
<p>Fin.</p>

2 changes: 2 additions & 0 deletions tests/test_files/markdown/action_links.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
>>[action link](https://www.youtube.com/watch?v=dQw4w9WgXcQ)
An action link is right >>[here](https://www.youtube.com/watch?v=dQw4w9WgXcQ). Yay! Here is another >>[Visit The Onion](https://theonion.com/).
1 change: 1 addition & 0 deletions tests/test_files/markdown/block_quotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ This is a multiline block quote with a nested multiline block quote using Notify
^ la
^ ti

Don't convert n^2 to a block quote.
5 changes: 5 additions & 0 deletions tests/test_files/markdown/block_quotes_action_link.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
> >>[action link](https://www.youtube.com/watch?v=dQw4w9WgXcQ)
^ >>[action link](https://www.youtube.com/watch?v=dQw4w9WgXcQ)

> Here is an >>[action link](https://www.youtube.com/watch?v=dQw4w9WgXcQ) in a Github markdown block quote. This text should be on the same line.
^ Here is an >>[action link](https://www.youtube.com/watch?v=dQw4w9WgXcQ) in a Notify markdown block quote. This text should be on the same line.

41 changes: 41 additions & 0 deletions tests/test_files/markdown/images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Images should be removed

## Inline images

![alt text](https://www.example.com/test.png)

![alt text](https://www.example.com/test.jpg "title text")

text before ![alt text](https://www.example.com/test.jpeg) text after

text before ![alt text](https://www.example.com/test.webm "title text") text after

## Reference images

The reference is immediately after the image.

![alt text][image1]
[image1]: https://www.example.com/test.gif

![alt text][image2]
[image2]: https://www.example.com/test.svg "title text"

text before ![alt text][image3] text after
text before [image3]: https://www.example.com/test.tga

text before ![alt text][image4] text after
[image4]: https://www.example.com/test.png "title text"

The reference is not immediately after the iamge.

![alt text][image5]
![alt text][image6]
text before ![alt text][image7] text after
text before ![alt text][image8] text after

This line separates the images from their references.

[image5]: https://www.example.com/test.png
[image6]: https://www.example.com/test.png "title text"
[image7]: https://www.example.com/test.png
[image8]: https://www.example.com/test.png "title text"
16 changes: 16 additions & 0 deletions tests/test_files/markdown/tables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Colons can be used to align columns.

| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3

Fin.
2 changes: 2 additions & 0 deletions tests/test_files/plain_text/action_links.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
action link: https://www.youtube.com/watch?v=dQw4w9WgXcQ

An action link is right here: https://www.youtube.com/watch?v=dQw4w9WgXcQ. Yay! Here is another Visit The Onion: https://theonion.com/.
2 changes: 2 additions & 0 deletions tests/test_files/plain_text/block_quotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ so
la
ti

Don't convert n^2 to a block quote.

6 changes: 6 additions & 0 deletions tests/test_files/plain_text/block_quotes_action_link.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@


action link: https://www.youtube.com/watch?v=dQw4w9WgXcQ


action link: https://www.youtube.com/watch?v=dQw4w9WgXcQ


Here is an action link: https://www.youtube.com/watch?v=dQw4w9WgXcQ in a Github markdown block quote. This text should be on the same line.


Expand Down
17 changes: 17 additions & 0 deletions tests/test_files/plain_text/images.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@



Images should be removed


Inline images


Reference images

The reference is immediately after the image.

The reference is not immediately after the iamge.

This line separates the images from their references.

5 changes: 5 additions & 0 deletions tests/test_files/plain_text/tables.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Colons can be used to align columns.

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

Fin.

0 comments on commit 6f79ce6

Please sign in to comment.