diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2019-12-16 15:19:02 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-08 10:45:08 +0100 |
commit | 290879c011760a27c1daf81bdb362d958123960b (patch) | |
tree | 833f4f951f5d016224ad211e89d0b9c4967cbb6b /core | |
parent | 288431f21b18f5311de77c9afcb29346cb7c6498 (diff) | |
download | dokka-290879c011760a27c1daf81bdb362d958123960b.tar.gz dokka-290879c011760a27c1daf81bdb362d958123960b.tar.bz2 dokka-290879c011760a27c1daf81bdb362d958123960b.zip |
BlockQuote and Img
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/pages/DocTagToContentConverter.kt | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/core/src/main/kotlin/pages/DocTagToContentConverter.kt b/core/src/main/kotlin/pages/DocTagToContentConverter.kt index da19765e..3d34ddd2 100644 --- a/core/src/main/kotlin/pages/DocTagToContentConverter.kt +++ b/core/src/main/kotlin/pages/DocTagToContentConverter.kt @@ -59,7 +59,16 @@ class DocTagToContentConverter( extras ) ) - is BlockQuote -> TODO("Implement DocNotToContent BlockQuote!") + is BlockQuote -> listOf( + ContentCode( + buildChildren(docTag), + "", + dci, + platforms, + styles, + extras + ) + ) is Code -> listOf( ContentCode( buildChildren(docTag), @@ -70,7 +79,16 @@ class DocTagToContentConverter( extras ) ) - is Img -> TODO("Implement DocNotToContent Img!") + is Img -> listOf( + ContentEmbeddedResource( + address = docTag.params.get("href")!!, + altText = docTag.params.get("alt"), + dci = dci, + platforms = platforms, + style = styles, + extras = extras + ) + ) is HorizontalRule -> listOf(ContentText("", dci, platforms, setOf())) is Text -> listOf(ContentText(docTag.body, dci, platforms, styles, extras)) else -> buildChildren(docTag) |