diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2020-03-11 13:05:14 +0100 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2020-03-11 13:10:16 +0100 |
commit | 5636115aee8d13870f0d3f172667fca1b3f78276 (patch) | |
tree | a7b3621bf88ee298887e57dcbcd039f5df1f34cd /plugins/base/src/main/kotlin/transformers/pages | |
parent | 11b223daa2c54d2b86efb5e6054fd7205ed0b37a (diff) | |
download | dokka-5636115aee8d13870f0d3f172667fca1b3f78276.tar.gz dokka-5636115aee8d13870f0d3f172667fca1b3f78276.tar.bz2 dokka-5636115aee8d13870f0d3f172667fca1b3f78276.zip |
Classlike header and other ui fixes
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/pages')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt | 6 |
1 files changed, 6 insertions, 0 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 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)) |