Skip to content

Commit 59fab5a

Browse files
Todo: Update these
1 parent e8358a6 commit 59fab5a

14 files changed

+290
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
version: 1.3.1
3+
title: autolinks_angle_brackets_multiple_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
See
8+
<a class="text-info underline" href="https://example.com">
9+
https://example.com
10+
</a>
11+
,
12+
<a class="text-info underline" href="http://foo.bar/baz">
13+
http://foo.bar/baz
14+
</a>
15+
, and
16+
<a class="text-info underline" href="https://sub.domain.tld/path?x=1&amp;y=2">
17+
https://sub.domain.tld/path?x=1&amp;y=2
18+
</a>
19+
in one line.
20+
</p>
21+
</section>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
version: 1.3.1
3+
title: autolinks_mailto_and_mixed_content_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
Contact
8+
<a class="text-info underline" href="mailto:info@example.com">
9+
mailto:info@example.com
10+
</a>
11+
or see
12+
<a class="text-info underline" href="https://example.com/readme.md">
13+
https://example.com/readme.md
14+
</a>
15+
.
16+
</p>
17+
</section>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
version: 1.3.1
3+
title: autolinks_non_angle_urls_should_not_break_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
Visit https://no-brackets.example/path and http://another.example/query?x=1.
8+
</p>
9+
</section>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
version: 1.3.1
3+
title: blockquote_with_links_and_paragraphs_test
4+
---
5+
<section>
6+
<div xmlns="div" class="djot-processed-content"><blockquote class="border-l-4 border-accent border-dotted pl-4 bg-secondary bg-opacity-10 mb-4 mt-4"><p class="mb-2">Quote line 1 with <a class="text-info underline" href="https://ref.example">ref</a></p></blockquote></div>
7+
<div xmlns="div" class="djot-processed-content"><blockquote class="border-l-4 border-accent border-dotted pl-4 bg-secondary bg-opacity-10 mb-4 mt-4"><p class="mb-2">Quote line 2.</p></blockquote></div>
8+
<p class="mb-2">
9+
Outside paragraph with
10+
<a class="text-info underline" href="https://outer.example/path">
11+
https://outer.example/path
12+
</a>
13+
.
14+
</p>
15+
</section>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
version: 1.3.1
3+
title: empty_input_renders_minimal_markup_test
4+
---
5+
<section></section>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
version: 1.3.1
3+
title: inline_code_and_code_block_should_not_autolink_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
Inline code like
8+
<code class="bg-neutral text-neutral-content p-1 rounded-lg mt-4 mb-4">
9+
curl https://api.example.com
10+
</code>
11+
should not autolink.
12+
</p>
13+
<pre class="bg-neutral text-neutral-content pl-4 block ml-2 mr-2 overflow-x-auto break-none whitespace-pre-wrap font-mono border-dotted border-2 border-neutral-content rounded-lg">
14+
<code class="bg-neutral text-neutral-content p-1 rounded-lg">
15+
# A fenced code block containing an URL
16+
wget https://downloads.example.com/archive.tar.gz
17+
18+
</code>
19+
</pre>
20+
<p class="mb-2">
21+
Regular text with
22+
<a class="text-info underline" href="https://linked.example">
23+
https://linked.example
24+
</a>
25+
after code.
26+
</p>
27+
</section>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
version: 1.3.1
3+
title: invalid_markdown_like_sequences_should_not_panic_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
Unclosed [link(https://bad.example
8+
</p>
9+
<p class="mb-2">
10+
Mismatched **bold and _italic
11+
</p>
12+
<p class="mb-2">
13+
14+
<a class="text-info underline" href="https://ok.example">
15+
https://ok.example
16+
</a>
17+
</p>
18+
</section>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
version: 1.3.1
3+
title: links_with_parentheses_and_punctuation_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
A tricky
8+
<a class="text-info underline" href="https://example.com/path(with">
9+
link
10+
</a>
11+
parens). Also
12+
<a class="text-info underline" href="https://example.com/trail">
13+
https://example.com/trail
14+
</a>
15+
, and a sentence ending link
16+
<a class="text-info underline" href="https://end.example">
17+
https://end.example
18+
</a>
19+
.
20+
</p>
21+
</section>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
version: 1.3.1
3+
title: multi_line_autolinks_across_paragraphs_test
4+
---
5+
<section>
6+
<p class="mb-2">
7+
Paragraph one with
8+
<a class="text-info underline" href="https://one.example">
9+
https://one.example
10+
</a>
11+
</p>
12+
<p class="mb-2">
13+
Paragraph two with
14+
<a class="text-info underline" href="https://two.example/path?x=1">
15+
https://two.example/path?x=1
16+
</a>
17+
and
18+
<a class="text-info underline" href="https://three.example">
19+
brackets
20+
</a>
21+
.
22+
</p>
23+
</section>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
version: 1.3.1
3+
title: nested_lists_with_links_and_formatting_test
4+
---
5+
<section>
6+
<ul class="list-disc leading-tight">
7+
<li>
8+
<p class="whitespace-nowrap">
9+
Parent 1
10+
- Child with
11+
<a class="text-info underline" href="https://child.example">
12+
link
13+
</a>
14+
15+
- Child with *
16+
<strong class="font-bold">
17+
bold
18+
</strong>
19+
* and
20+
<em class="italic">
21+
italic
22+
</em>
23+
</p>
24+
</li>
25+
<li>
26+
<p class="whitespace-nowrap">
27+
Parent 2
28+
</p>
29+
</li>
30+
</ul>
31+
<div xmlns="div" class="djot-processed-content"><ol class="list-decimal mb-4"><li><p class="mb-2">Ordered child with <a class="text-info underline" href="https://another.example">another</a></p></li><li><p class="mb-2">Second ordered child</p></li></ol></div>
32+
</section>

0 commit comments

Comments
 (0)