Module Content_block.Text

Plain text content blocks.

type t

The type of text blocks.

val jsont : t Jsont.t

jsont is the Jsont codec for text blocks. Use Jsont.Json.encode jsont and Jsont.Json.decode jsont for serialization. Use Jsont.pp_value jsont () for pretty-printing.

val create : string -> t

create text creates a new text block with the given text content.

val text : t -> string

text t returns the text content of the block.

val unknown : t -> Unknown.t

unknown t returns any unknown fields from JSON parsing.