quarto.utils

dump

function quarto.utils.dump(value: any)

Dump a text representation of the passed value to stdout.

Note that you should use quarto.log.output() instead of this function.

resolve_path

function quarto.utils.resolve_path(path: string)
  -> string

Compute the absolute path to a file that is installed alongside the Lua script.

This is useful for internal resources that your filter needs but should not be visible to the user.

string_to_blocks

function quarto.utils.string_to_blocks(path: string)
  -> pandoc.Blocks

Converts a string to a list of Pandoc Blocks, processing any Quarto custom syntax in the string.

string_to_inlines

function quarto.utils.string_to_inlines(path: string, sep: pandoc.Inline|nil)
  -> pandoc.Inlines

Converts a string to a list of Pandoc Inlines, processing any Quarto custom syntax in the string.