KobwebCallExtension

class KobwebCallExtension : Parser.ParserExtension(source)

An extension point for adding ${inlinecall} and {{{ blockcall }}} support for typing in raw code snippets into Markdown.

When these items are encountered, they will instruct Markdown to insert the code directly into the final Kotlin file.

For example, Hello ${Fancy("World")}, welcome to Kobweb!

will render

P {
Text("Hello ")
Fancy("World")
Text(", welcome to Kobweb!")
}

The block syntax can be used to wrap markdown with code, as in

{{{ .components.widgets.Warning
Using this method before state is initialized can lead to an `InvalidStateException`.
}}}

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun extend(parserBuilder: Parser.Builder)