From 5636115aee8d13870f0d3f172667fca1b3f78276 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Wed, 11 Mar 2020 13:05:14 +0100 Subject: Classlike header and other ui fixes --- .../kotlin/transformers/pages/comments/DocTagToContentConverter.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/base/src/main/kotlin/transformers') 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 900f5c19..5332b0f8 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt @@ -41,6 +41,11 @@ object DocTagToContentConverter : CommentsToContentConverter { ) ) + fun buildNewLine() = listOf(ContentBreakLine( + dci, + platforms + )) + return when (docTag) { is H1 -> buildHeader(1) is H2 -> buildHeader(2) @@ -51,6 +56,7 @@ object DocTagToContentConverter : CommentsToContentConverter { is Ul -> buildList(false) is Ol -> buildList(true) is Li -> buildChildren(docTag) + is Br -> buildNewLine() is B -> buildChildren(docTag, setOf(TextStyle.Strong)) is I -> buildChildren(docTag, setOf(TextStyle.Italic)) is P -> buildChildren(docTag, newStyles = setOf(TextStyle.Paragraph)) -- cgit