summaryrefslogtreecommitdiff
path: root/tests/ref
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-01-24 13:11:26 +0100
committerGitHub <noreply@github.com>2025-01-24 12:11:26 +0000
commit26e65bfef5b1da7f6c72e1409237cf03fb5d6069 (patch)
treedae6f71efead43736202dd6aea933b95b1bc7a14 /tests/ref
parent467968af0788a3059e1bed47f9daee846f5b3904 (diff)
Semantic paragraphs (#5746)
Diffstat (limited to 'tests/ref')
-rw-r--r--tests/ref/bibliography-grid-par.pngbin0 -> 8757 bytes
-rw-r--r--tests/ref/bibliography-indent-par.pngbin0 -> 9087 bytes
-rw-r--r--tests/ref/enum-par.pngbin0 -> 3521 bytes
-rw-r--r--tests/ref/figure-par.pngbin0 -> 1701 bytes
-rw-r--r--tests/ref/heading-par.pngbin0 -> 555 bytes
-rw-r--r--tests/ref/html/enum-par.html36
-rw-r--r--tests/ref/html/list-par.html36
-rw-r--r--tests/ref/html/par-semantic-html.html16
-rw-r--r--tests/ref/html/quote-attribution-link.html2
-rw-r--r--tests/ref/html/quote-plato.html4
-rw-r--r--tests/ref/html/terms-par.html42
-rw-r--r--tests/ref/issue-5503-enum-in-align.pngbin0 -> 421 bytes
-rw-r--r--tests/ref/issue-5503-enum-interrupted-by-par-align.pngbin1004 -> 0 bytes
-rw-r--r--tests/ref/issue-5503-list-in-align.png (renamed from tests/ref/issue-5503-list-interrupted-by-par-align.png)bin415 -> 415 bytes
-rw-r--r--tests/ref/issue-5503-terms-in-align.png (renamed from tests/ref/issue-5503-terms-interrupted-by-par-align.png)bin569 -> 569 bytes
-rw-r--r--tests/ref/list-par.pngbin0 -> 3319 bytes
-rw-r--r--tests/ref/math-par.pngbin0 -> 387 bytes
-rw-r--r--tests/ref/outline-par.pngbin0 -> 2911 bytes
-rw-r--r--tests/ref/par-contains-block.pngbin0 -> 426 bytes
-rw-r--r--tests/ref/par-contains-parbreak.pngbin0 -> 426 bytes
-rw-r--r--tests/ref/par-hanging-indent-semantic.pngbin0 -> 1594 bytes
-rw-r--r--tests/ref/par-semantic-align.pngbin0 -> 3082 bytes
-rw-r--r--tests/ref/par-semantic-tag.pngbin0 -> 278 bytes
-rw-r--r--tests/ref/par-semantic.pngbin0 -> 3485 bytes
-rw-r--r--tests/ref/par-show.pngbin0 -> 932 bytes
-rw-r--r--tests/ref/quote-par.pngbin0 -> 2792 bytes
-rw-r--r--tests/ref/table-cell-par.pngbin0 -> 645 bytes
-rw-r--r--tests/ref/terms-par.pngbin0 -> 3892 bytes
28 files changed, 133 insertions, 3 deletions
diff --git a/tests/ref/bibliography-grid-par.png b/tests/ref/bibliography-grid-par.png
new file mode 100644
index 00000000..5befbcc5
--- /dev/null
+++ b/tests/ref/bibliography-grid-par.png
Binary files differ
diff --git a/tests/ref/bibliography-indent-par.png b/tests/ref/bibliography-indent-par.png
new file mode 100644
index 00000000..98a3c4d0
--- /dev/null
+++ b/tests/ref/bibliography-indent-par.png
Binary files differ
diff --git a/tests/ref/enum-par.png b/tests/ref/enum-par.png
new file mode 100644
index 00000000..ca923a52
--- /dev/null
+++ b/tests/ref/enum-par.png
Binary files differ
diff --git a/tests/ref/figure-par.png b/tests/ref/figure-par.png
new file mode 100644
index 00000000..d70bbcb1
--- /dev/null
+++ b/tests/ref/figure-par.png
Binary files differ
diff --git a/tests/ref/heading-par.png b/tests/ref/heading-par.png
new file mode 100644
index 00000000..affc0df4
--- /dev/null
+++ b/tests/ref/heading-par.png
Binary files differ
diff --git a/tests/ref/html/enum-par.html b/tests/ref/html/enum-par.html
new file mode 100644
index 00000000..60d4592b
--- /dev/null
+++ b/tests/ref/html/enum-par.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <div>
+ <ol>
+ <li>Hello</li>
+ <li>World</li>
+ </ol>
+ </div>
+ <div>
+ <ol>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ </li>
+ <li>World</li>
+ </ol>
+ </div>
+ <div>
+ <ol>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ <p>The</p>
+ </li>
+ <li>
+ <p>World</p>
+ </li>
+ </ol>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/html/list-par.html b/tests/ref/html/list-par.html
new file mode 100644
index 00000000..7c747ff4
--- /dev/null
+++ b/tests/ref/html/list-par.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <div>
+ <ul>
+ <li>Hello</li>
+ <li>World</li>
+ </ul>
+ </div>
+ <div>
+ <ul>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ </li>
+ <li>World</li>
+ </ul>
+ </div>
+ <div>
+ <ul>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ <p>The</p>
+ </li>
+ <li>
+ <p>World</p>
+ </li>
+ </ul>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/html/par-semantic-html.html b/tests/ref/html/par-semantic-html.html
new file mode 100644
index 00000000..09c7d2fd
--- /dev/null
+++ b/tests/ref/html/par-semantic-html.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <h2>Heading is no paragraph</h2>
+ <p>I'm a paragraph.</p>
+ <div>I'm not.</div>
+ <div>
+ <p>We are two.</p>
+ <p>So we are paragraphs.</p>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/html/quote-attribution-link.html b/tests/ref/html/quote-attribution-link.html
index 753807db..c12d2ae2 100644
--- a/tests/ref/html/quote-attribution-link.html
+++ b/tests/ref/html/quote-attribution-link.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
- <blockquote cite="https://typst.app/home"> Compose papers faster </blockquote>
+ <blockquote cite="https://typst.app/home">Compose papers faster</blockquote>
<p>— <a href="https://typst.app/home">typst.com</a></p>
</body>
</html>
diff --git a/tests/ref/html/quote-plato.html b/tests/ref/html/quote-plato.html
index f516adc2..03983508 100644
--- a/tests/ref/html/quote-plato.html
+++ b/tests/ref/html/quote-plato.html
@@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
- <blockquote> … ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι ἃ μὴ οἶδα οὐδὲ οἴομαι εἰδέναι. </blockquote>
+ <blockquote>… ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι ἃ μὴ οἶδα οὐδὲ οἴομαι εἰδέναι.</blockquote>
<p>— Plato</p>
- <blockquote> … I seem, then, in just this little thing to be wiser than this man at any rate, that what I do not know I do not think I know either. </blockquote>
+ <blockquote>… I seem, then, in just this little thing to be wiser than this man at any rate, that what I do not know I do not think I know either.</blockquote>
<p>— from the Henry Cary literal translation of 1897</p>
</body>
</html>
diff --git a/tests/ref/html/terms-par.html b/tests/ref/html/terms-par.html
new file mode 100644
index 00000000..78bc5df1
--- /dev/null
+++ b/tests/ref/html/terms-par.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <div>
+ <dl>
+ <dt>Hello</dt>
+ <dd>A</dd>
+ <dt>World</dt>
+ <dd>B</dd>
+ </dl>
+ </div>
+ <div>
+ <dl>
+ <dt>Hello</dt>
+ <dd>
+ <p>A</p>
+ <p>From</p>
+ </dd>
+ <dt>World</dt>
+ <dd>B</dd>
+ </dl>
+ </div>
+ <div>
+ <dl>
+ <dt>Hello</dt>
+ <dd>
+ <p>A</p>
+ <p>From</p>
+ <p>The</p>
+ </dd>
+ <dt>World</dt>
+ <dd>
+ <p>B</p>
+ </dd>
+ </dl>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/issue-5503-enum-in-align.png b/tests/ref/issue-5503-enum-in-align.png
new file mode 100644
index 00000000..4857e731
--- /dev/null
+++ b/tests/ref/issue-5503-enum-in-align.png
Binary files differ
diff --git a/tests/ref/issue-5503-enum-interrupted-by-par-align.png b/tests/ref/issue-5503-enum-interrupted-by-par-align.png
deleted file mode 100644
index 9cc942b4..00000000
--- a/tests/ref/issue-5503-enum-interrupted-by-par-align.png
+++ /dev/null
Binary files differ
diff --git a/tests/ref/issue-5503-list-interrupted-by-par-align.png b/tests/ref/issue-5503-list-in-align.png
index 2b785c4b..2b785c4b 100644
--- a/tests/ref/issue-5503-list-interrupted-by-par-align.png
+++ b/tests/ref/issue-5503-list-in-align.png
Binary files differ
diff --git a/tests/ref/issue-5503-terms-interrupted-by-par-align.png b/tests/ref/issue-5503-terms-in-align.png
index 1bdacd94..1bdacd94 100644
--- a/tests/ref/issue-5503-terms-interrupted-by-par-align.png
+++ b/tests/ref/issue-5503-terms-in-align.png
Binary files differ
diff --git a/tests/ref/list-par.png b/tests/ref/list-par.png
new file mode 100644
index 00000000..5f0003d1
--- /dev/null
+++ b/tests/ref/list-par.png
Binary files differ
diff --git a/tests/ref/math-par.png b/tests/ref/math-par.png
new file mode 100644
index 00000000..30d64794
--- /dev/null
+++ b/tests/ref/math-par.png
Binary files differ
diff --git a/tests/ref/outline-par.png b/tests/ref/outline-par.png
new file mode 100644
index 00000000..04c63f62
--- /dev/null
+++ b/tests/ref/outline-par.png
Binary files differ
diff --git a/tests/ref/par-contains-block.png b/tests/ref/par-contains-block.png
new file mode 100644
index 00000000..f4bd071f
--- /dev/null
+++ b/tests/ref/par-contains-block.png
Binary files differ
diff --git a/tests/ref/par-contains-parbreak.png b/tests/ref/par-contains-parbreak.png
new file mode 100644
index 00000000..f4bd071f
--- /dev/null
+++ b/tests/ref/par-contains-parbreak.png
Binary files differ
diff --git a/tests/ref/par-hanging-indent-semantic.png b/tests/ref/par-hanging-indent-semantic.png
new file mode 100644
index 00000000..e05795c7
--- /dev/null
+++ b/tests/ref/par-hanging-indent-semantic.png
Binary files differ
diff --git a/tests/ref/par-semantic-align.png b/tests/ref/par-semantic-align.png
new file mode 100644
index 00000000..eda49641
--- /dev/null
+++ b/tests/ref/par-semantic-align.png
Binary files differ
diff --git a/tests/ref/par-semantic-tag.png b/tests/ref/par-semantic-tag.png
new file mode 100644
index 00000000..2b26e5ae
--- /dev/null
+++ b/tests/ref/par-semantic-tag.png
Binary files differ
diff --git a/tests/ref/par-semantic.png b/tests/ref/par-semantic.png
new file mode 100644
index 00000000..c2eca74d
--- /dev/null
+++ b/tests/ref/par-semantic.png
Binary files differ
diff --git a/tests/ref/par-show.png b/tests/ref/par-show.png
new file mode 100644
index 00000000..1ceb26f7
--- /dev/null
+++ b/tests/ref/par-show.png
Binary files differ
diff --git a/tests/ref/quote-par.png b/tests/ref/quote-par.png
new file mode 100644
index 00000000..89d15ddf
--- /dev/null
+++ b/tests/ref/quote-par.png
Binary files differ
diff --git a/tests/ref/table-cell-par.png b/tests/ref/table-cell-par.png
new file mode 100644
index 00000000..24a2a55f
--- /dev/null
+++ b/tests/ref/table-cell-par.png
Binary files differ
diff --git a/tests/ref/terms-par.png b/tests/ref/terms-par.png
new file mode 100644
index 00000000..910b5e5d
--- /dev/null
+++ b/tests/ref/terms-par.png
Binary files differ