From a89fef501de1ab2149417dc23a3ad94744a59e08 Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Mon, 29 Jun 2020 18:38:55 +0200 Subject: Handling multi-line list items. Added tests for comment to content converter. --- .../kotlin/transformers/pages/comments/DocTagToContentConverter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin/transformers/pages/comments') 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 14f3a996..1770dc6f 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt @@ -62,7 +62,9 @@ object DocTagToContentConverter : CommentsToContentConverter { is H6 -> buildHeader(6) is Ul -> buildList(false) is Ol -> buildList(true, docTag.params["start"]?.toInt() ?: 1) - is Li -> buildChildren(docTag) + is Li -> listOf( + ContentGroup(children = buildChildren(docTag), dci, sourceSets, styles, extra) + ) is Br -> buildNewLine() is B -> buildChildren(docTag, setOf(TextStyle.Strong)) is I -> buildChildren(docTag, setOf(TextStyle.Italic)) -- cgit