Package-level declarations

Types

Link copied to clipboard
interface BlockRenderer<in T : BaseNode, BaseNode>
Link copied to clipboard
Link copied to clipboard
interface RenderContext<in BaseNode>
Link copied to clipboard
data class Renderers<BaseNode : Any>(val unknownBlockRenderer: BlockRenderer<BaseNode, BaseNode> = noopBlockRenderer(), val unknownInlineRenderer: InlineRenderer<BaseNode, BaseNode> = noopInlineRenderer(), val blockRenderers: Map<KClass<out BaseNode>, BlockRenderer<BaseNode, BaseNode>> = emptyMap(), val inlineRenderers: Map<KClass<out BaseNode>, InlineRenderer<BaseNode, BaseNode>> = emptyMap(), val ignoredNodeTypes: Set<KClass<out BaseNode>> = emptySet())
Link copied to clipboard
class VisuallyOffsetTextMapping(val textMapping: TextMapping, val visualOffset: Int) : TextMapping

Moves the visual range of a TextMapping. This is useful when parsing a node that has multiple inline nodes inside, because each inline node's text is parsed as if it was the only inline node in the block.

Functions

Link copied to clipboard
fun TextMapping.visuallyOffset(offset: Int): TextMapping