MarkdownDocument

class MarkdownDocument(val text: String)

Authored page structure and explicit model insertion points, independent of the publishing format.

Constructors

Link copied to clipboard
constructor(text: String)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Heading(val level: Int, val text: String, val range: IntRange)
Link copied to clipboard
data class Insertion(val kind: String, val headingLevel: Int, val range: IntRange)
Link copied to clipboard
sealed interface Part

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Code examples and commented-out links are not dependencies.

Link copied to clipboard

A heading marked {.stig-box .note .open} owns its section; prose is never copied into Kotlin.

Link copied to clipboard

Dokka reads heading text and HTML anchors, while MkDocs reads the same attributes directly.

Link copied to clipboard
fun renderMkDocs(render: (MarkdownDocument.Insertion) -> String = { error("Model insertion requires a compiled model: ${it.kind}") }): String
Generated with STIG