From d0f83037a12441145d35090461ef3c91df4c4076 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Wed, 14 Apr 2021 15:15:48 +0200 Subject: Handle html in kdoc (#1805) --- core/src/main/kotlin/model/doc/DocTag.kt | 4 ++++ core/src/main/kotlin/pages/contentNodeProperties.kt | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'core/src') diff --git a/core/src/main/kotlin/model/doc/DocTag.kt b/core/src/main/kotlin/model/doc/DocTag.kt index 7698ebb3..a3d88508 100644 --- a/core/src/main/kotlin/model/doc/DocTag.kt +++ b/core/src/main/kotlin/model/doc/DocTag.kt @@ -5,6 +5,10 @@ import org.jetbrains.dokka.model.WithChildren sealed class DocTag : WithChildren { abstract val params: Map + + companion object { + fun contentTypeParam(type: String): Map = mapOf("content-type" to type) + } } data class A( diff --git a/core/src/main/kotlin/pages/contentNodeProperties.kt b/core/src/main/kotlin/pages/contentNodeProperties.kt index 67acef6d..cfd7f769 100644 --- a/core/src/main/kotlin/pages/contentNodeProperties.kt +++ b/core/src/main/kotlin/pages/contentNodeProperties.kt @@ -10,3 +10,7 @@ class SimpleAttr(val extraKey: String, val extraValue: String) : ExtraProperty, ExtraProperty.Key { + override val key: ExtraProperty.Key = this +} -- cgit