aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/transformers/pages/comments
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-06-29 18:38:55 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-02 13:18:04 +0200
commita89fef501de1ab2149417dc23a3ad94744a59e08 (patch)
treec99210d0ddc28e230c715f5b3847c3c42aab6299 /plugins/base/src/main/kotlin/transformers/pages/comments
parent6a15ef4a921058a86bd831f464ec00f6f33b56c9 (diff)
downloaddokka-a89fef501de1ab2149417dc23a3ad94744a59e08.tar.gz
dokka-a89fef501de1ab2149417dc23a3ad94744a59e08.tar.bz2
dokka-a89fef501de1ab2149417dc23a3ad94744a59e08.zip
Handling multi-line list items. Added tests for comment to content converter.
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/pages/comments')
-rw-r--r--plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt4
1 files changed, 3 insertions, 1 deletions
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))