org.jetbrains.dokka.gfm.renderer.BriefCommentPreprocessor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gfm-plugin Show documentation
Show all versions of gfm-plugin Show documentation
Dokka is an API documentation engine for Kotlin
package org.jetbrains.dokka.gfm.renderer
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.transformers.pages.PageTransformer
class BriefCommentPreprocessor : PageTransformer {
override fun invoke(input: RootPageNode) = input.transformContentPagesTree { contentPage ->
contentPage.modified(content = contentPage.content.recursiveMapTransform {
if (it.dci.kind == ContentKind.BriefComment) {
it.copy(style = it.style + setOf(TextStyle.Block))
} else {
it
}
})
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy