diff options
author | Filip Zybała <fzybala@virtuslab.com> | 2020-06-29 18:38:55 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-02 13:18:04 +0200 |
commit | a89fef501de1ab2149417dc23a3ad94744a59e08 (patch) | |
tree | c99210d0ddc28e230c715f5b3847c3c42aab6299 /plugins/base/src/main/kotlin | |
parent | 6a15ef4a921058a86bd831f464ec00f6f33b56c9 (diff) | |
download | dokka-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')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt | 4 |
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)) |