From c532003c71cc551ce0df797a8d6207c0edb8eaab Mon Sep 17 00:00:00 2001 From: TheOnlyTails Date: Fri, 13 May 2022 16:16:03 +0300 Subject: Render quotes as blockquotes instead of code blocks. (#2496) --- .../transformers/pages/comments/DocTagToContentConverter.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin/transformers/pages') diff --git a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt index 85b082ef..b46a7679 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt @@ -123,7 +123,15 @@ open class DocTagToContentConverter : CommentsToContentConverter { styles ) ) - is BlockQuote, is Pre, is CodeBlock -> listOf( + is BlockQuote -> listOf( + ContentGroup( + buildChildren(docTag), + dci, + sourceSets.toDisplaySourceSets(), + styles + TextStyle.Quotation, + ) + ) + is Pre, is CodeBlock -> listOf( ContentCodeBlock( buildChildren(docTag), docTag.params.getOrDefault("lang", ""), -- cgit