Skip to content

Commit 9d94e49

Browse files
committed
Add quarto.utils.string_to_* functions
1 parent 460af2e commit 9d94e49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/extensions/lua-api.qmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ Various utility functions are provided:
5858

5959
| Function | Description |
6060
|-------------------|-----------------------------------------------------|
61-
| `quarto.version` | Return the current Quarto version as a `pandoc.Version` object. |
62-
| `quarto.log.output(obj)` | Dump a text representation of the passed object to stdout. |
63-
| `quarto.utils.resolve_path(path)` | Compute the full path to a file that is installed alongside your extension's Lua script. This is useful for *internal* resources that your filter needs but should not be visible to the user. |
61+
| `quarto.version` | Return the current Quarto version as a `pandoc.Version` object. |
62+
| `quarto.log.output(obj)` | Dump a text representation of the passed object to stdout. |
63+
| `quarto.utils.resolve_path(path)` | Compute the full path to a file that is installed alongside your extension's Lua script. This is useful for *internal* resources that your filter needs but should not be visible to the user. |
64+
| `quarto.utils.string_to_inlines(path, sep)` | Converts a string to a list of Pandoc Inlines, processing any Quarto custom syntax in the string. |
65+
| `quarto.utils.string_to_blocks(path)` | Converts a string to a list of Pandoc Blocks, processing any Quarto custom syntax in the string. |
6466

6567
Quarto includes the [pandoc-lua-logging](https://github.com/wlupton/pandoc-lua-logging) library, which should be used in preference to the dump function. For example, you can examine an element passed to a filter function as follows:
6668

0 commit comments

Comments
 (0)