org.jetbrains.dokka.gfm.gfmTemplating.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
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id.CLASS
import org.jetbrains.dokka.base.templating.toJsonString
import org.jetbrains.dokka.links.DRI
@JsonTypeInfo(use = CLASS)
sealed class GfmCommand {
companion object {
private const val delimiter = "\u1680"
val templateCommandRegex: Regex =
Regex("(.+?)(?=")
val MatchResult.command
get() = groupValues[1]
val MatchResult.label
get() = groupValues[2]
fun Appendable.templateCommand(command: GfmCommand, content: Appendable.() -> Unit) {
append("")
content()
append("")
}
}
}
class ResolveLinkGfmCommand(val dri: DRI) : GfmCommand()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy