aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/renderers/html
diff options
context:
space:
mode:
authorTheOnlyTails <theonlytails@theonlytails.com>2022-05-13 16:16:03 +0300
committerGitHub <noreply@github.com>2022-05-13 16:16:03 +0300
commitc532003c71cc551ce0df797a8d6207c0edb8eaab (patch)
treee39c948c0d0e305dbb0a61be7744e517fd924367 /plugins/base/src/test/kotlin/renderers/html
parent3e55be9954acc7e4cab11ed661cb62ed347e9b84 (diff)
downloaddokka-c532003c71cc551ce0df797a8d6207c0edb8eaab.tar.gz
dokka-c532003c71cc551ce0df797a8d6207c0edb8eaab.tar.bz2
dokka-c532003c71cc551ce0df797a8d6207c0edb8eaab.zip
Render quotes as blockquotes instead of code blocks. (#2496)
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers/html')
-rw-r--r--plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt b/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt
index fd2f7860..2c862525 100644
--- a/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt
+++ b/plugins/base/src/test/kotlin/renderers/html/TextStylesTest.kt
@@ -69,6 +69,16 @@ class TextStylesTest : HtmlRenderingOnlyTestBase() {
files.contents.getValue("test-page.html").contains("&nbsp;<strike><b>styled text</b></strike>")
}
+ @Test
+ fun `should include blockquote`() {
+ val page = testPage {
+ group(styles = setOf(TextStyle.Quotation)) {
+ text("blockquote text")
+ }
+ }
+ HtmlRenderer(context).render(page)
+ renderedContent.match(BlockQuote("blockquote text"))
+ }
override val renderedContent: Element
get() = files.contents.getValue("test-page.html").let { Jsoup.parse(it) }.select("#content").single()