# Package-level declarations

## Functions

br
Link copied to clipboard

    .br -> Node

Content copied to clipboard

Creates a line break. In standard Markdown, this is also achievable with two spaces at the end of a line, but this function provides a more explicit and unambiguous way to insert a line break.

code
Link copied to clipboard

    .code   lang:{String? = null} \
         caption:{InlineMarkdownContent? = null} \
     linenumbers:{Boolean = true} \
           focus:{Range? = null} \
             ref:{String? = null} \
            code:{EvaluableString}
    -> Node

Content copied to clipboard

Creates a code block. Contrary to its standard Markdown implementation with backtick/tilde fences, this function accepts function calls within its code argument, hence it can be used - for example - in combination with read to load code from file.

codespan
Link copied to clipboard

    .codespan text:{String} -> Node

Content copied to clipboard

Creates an inline code span. Equivalent to backticks in standard Markdown, but also accepts function calls within its text argument.

loremipsum
Link copied to clipboard

    .loremipsum -> String

Content copied to clipboard
match
Link copied to clipboard

    .match content:{InlineMarkdownContent} \
           pattern:{String} \
       replacement:{Lambda}
    -> Node

Content copied to clipboard

Finds every substring of content that matches the regular expression pattern and replaces each match with the inline content produced by replacement.

text
Link copied to clipboard

    .text  text:{InlineMarkdownContent} \
           size:{TextTransformData.Size? = null} \
         weight:{TextTransformData.Weight? = null} \
          style:{TextTransformData.Style? = null} \
     decoration:{TextTransformData.Decoration? = null} \
           case:{TextTransformData.Case? = null} \
        variant:{TextTransformData.Variant? = null} \
         script:{TextTransformData.Script? = null} \
          color:{Color? = null} \
            url:{String? = null} \
      classname:{String? = null}
    -> Node

Content copied to clipboard

Creates an inline text node with specified formatting and transformation.