mirror of
https://github.com/typst/typst
synced 2025-08-06 19:27:55 +08:00
Add tests for HTML quotes.
This commit is contained in:
parent
1834dbcd4c
commit
61c3e363a4
12
tests/ref/html/quote-nesting-html.html
Normal file
12
tests/ref/html/quote-nesting-html.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
When you said that “he surely meant that ‘she intended to say “I'm sorry”’”, I was quite confused.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
21
tests/ref/html/quote-plato.html
Normal file
21
tests/ref/html/quote-plato.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
<p>
|
||||
— from the Henry Cary literal translation of 1897
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
@ -84,3 +84,18 @@ And I quote: #quote(attribution: [René Descartes])[cogito, ergo sum].
|
||||
// With custom quotes.
|
||||
#set smartquote(quotes: (single: ("<", ">"), double: ("(", ")")))
|
||||
#quote[A #quote[nested] quote]
|
||||
|
||||
--- quote-plato html ---
|
||||
#set quote(block: true)
|
||||
|
||||
#quote(attribution: [Plato])[
|
||||
... ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι
|
||||
ἃ μὴ οἶδα οὐδὲ οἴομαι εἰδέναι.
|
||||
]
|
||||
#quote(attribution: [from the Henry Cary literal translation of 1897])[
|
||||
... 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.
|
||||
]
|
||||
|
||||
--- quote-nesting-html html ---
|
||||
When you said that #quote[he surely meant that #quote[she intended to say #quote[I'm sorry]]], I was quite confused.
|
||||
|
Loading…
x
Reference in New Issue
Block a user