All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.dokka.gfm.renderer.BriefCommentPreprocessor.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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