abs | Returns the absolute value of the given number. | number | abs(number) |
add | Adds two values. | value1 , value2 | add(value1, value2) |
and | Performs a logical AND operation on two boolean values. | value1 , value2 | and(value1, value2) |
array | Creates an array from the given values. | values | array(values) |
arrays | Returns array if input is array, None otherwise | a | arrays(a) |
assert | Verifies that a condition is true and raises an error if it’s false. | cond | assert(cond) |
assert | Asserts that two values are equal, returns the value if true, otherwise raises an error. | value1 , value2 | assert(value1, value2) |
base64 | Encodes the given string to base64. | input | base64(input) |
base64d | Decodes the given base64 string. | input | base64d(input) |
booleans | Returns boolean if input is boolean, None otherwise | b | booleans(b) |
ceil | Rounds the given number up to the nearest integer. | number | ceil(number) |
compact | Removes None values from the given array. | array | compact(array) |
contains | Checks if string contains a substring | haystack , needle | contains(haystack, needle) |
csv2table | Convert csv string to markdown table | csv | csv2table(csv) |
debug | Prints the debug information of the given value. | value | debug(value) |
del | Deletes the element at the specified index in the array or string. | array_or_string , index | del(array_or_string, index) |
div | Divides the first value by the second value. | value1 , value2 | div(value1, value2) |
downcase | Converts the given string to lowercase. | input | downcase(input) |
ends_with | Checks if the given string ends with the specified substring. | string , substring | ends_with(string, substring) |
eq | Checks if two values are equal. | value1 , value2 | eq(value1, value2) |
error | Raises a user-defined error with the specified message. | message | error(message) |
explode | Splits the given string into an array of characters. | string | explode(string) |
filter | Filters the elements of an array based on a provided callback function. | v , f | filter(v, f) |
first | Returns the first element of an array | arr | first(arr) |
floor | Rounds the given number down to the nearest integer. | number | floor(number) |
from_date | Converts a date string to a timestamp. | date_str | from_date(date_str) |
get_md_list_level | Returns the indent level of a markdown list node. | list | get_md_list_level(list) |
get_title | Returns the title of a markdown node. | node | get_title(node) |
gsub | Replaces all occurrences matching a regular expression pattern with the replacement string. | pattern , from , to | gsub(pattern, from, to) |
gt | Checks if the first value is greater than the second value. | value1 , value2 | gt(value1, value2) |
gte | Checks if the first value is greater than or equal to the second value. | value1 , value2 | gte(value1, value2) |
halt | Terminates the program with the given exit code. | exit_code | halt(exit_code) |
halt_error | Halts execution with error code 5 | | halt_error() |
implode | Joins an array of characters into a string. | array | implode(array) |
index | Finds the first occurrence of a substring in the given string. | string , substring | index(string, substring) |
is_array | Checks if input is an array | a | is_array(a) |
is_bool | Checks if input is a boolean | b | is_bool(b) |
is_code | Checks if markdown is code block | md | is_code(md) |
is_em | Checks if markdown is emphasis | md | is_em(md) |
is_empty | Checks if string or array is empty | s | is_empty(s) |
is_h | Checks if markdown is heading | md | is_h(md) |
is_h1 | Checks if markdown is h1 heading | md | is_h1(md) |
is_h2 | Checks if markdown is h2 heading | md | is_h2(md) |
is_h3 | Checks if markdown is h3 heading | md | is_h3(md) |
is_h4 | Checks if markdown is h4 heading | md | is_h4(md) |
is_h5 | Checks if markdown is h5 heading | md | is_h5(md) |
is_html | Checks if markdown is html | md | is_html(md) |
is_list | Checks if markdown is list | list | is_list(list) |
is_list1 | Checks if markdown is list with indentation level 1 | list | is_list1(list) |
is_list2 | Checks if markdown is list with indentation level 2 | list | is_list2(list) |
is_list3 | Checks if markdown is list with indentation level 3 | list | is_list3(list) |
is_markdown | Checks if input is markdown | m | is_markdown(m) |
is_mdx | Checks if markdown is MDX | mdx | is_mdx(mdx) |
is_mdx_flow_expression | Checks if markdown is MDX Flow Expression | mdx | is_mdx_flow_expression(mdx) |
is_mdx_js_esm | Checks if markdown is MDX Js Esm | mdx | is_mdx_js_esm(mdx) |
is_mdx_jsx_flow_element | Checks if markdown is MDX Jsx Flow Element | mdx | is_mdx_jsx_flow_element(mdx) |
is_mdx_jsx_text_element | Checks if markdown is MDX Jsx Text Element | mdx | is_mdx_jsx_text_element(mdx) |
is_mdx_text_expression | Checks if markdown is MDX Text Expression | mdx | is_mdx_text_expression(mdx) |
is_none | Checks if input is None | n | is_none(n) |
is_number | Checks if input is a number | n | is_number(n) |
is_string | Checks if input is a string | s | is_string(s) |
is_text | Checks if markdown is text | text | is_text(text) |
is_toml | Checks if markdown is toml | md | is_toml(md) |
is_yaml | Checks if markdown is yaml | md | is_yaml(md) |
join | Joins the elements of an array into a string with the given separator. | array , separator | join(array, separator) |
last | Returns the last element of an array | arr | last(arr) |
len | Returns the length of the given string or array. | value | len(value) |
lt | Checks if the first value is less than the second value. | value1 , value2 | lt(value1, value2) |
lte | Checks if the first value is less than or equal to the second value. | value1 , value2 | lte(value1, value2) |
ltrimstr | Removes prefix string from input if it exists | s , left | ltrimstr(s, left) |
map | Applies a given function to each element of the provided array and returns a new array with the results. | v , f | map(v, f) |
markdowns | Returns markdown if input is markdown, None otherwise | m | markdowns(m) |
match | Finds all matches of the given pattern in the string. | string , pattern | match(string, pattern) |
max | Returns the maximum of two values. | value1 , value2 | max(value1, value2) |
min | Returns the minimum of two values. | value1 , value2 | min(value1, value2) |
mod | Calculates the remainder of the division of the first value by the second value. | value1 , value2 | mod(value1, value2) |
mul | Multiplies two values. | value1 , value2 | mul(value1, value2) |
ne | Checks if two values are not equal. | value1 , value2 | ne(value1, value2) |
not | Performs a logical NOT operation on a boolean value. | value | not(value) |
now | Returns the current timestamp. | | now() |
nth | Gets the element at the specified index in the array or string. | array_or_string , index | nth(array_or_string, index) |
numbers | Returns number if input is number, None otherwise | n | numbers(n) |
or | Performs a logical OR operation on two boolean values. | value1 , value2 | or(value1, value2) |
pow | Raises the base to the power of the exponent. | base , exponent | pow(base, exponent) |
range | Creates an array of numbers within the specified range. | start , end | range(start, end) |
repeat | Repeats the given string a specified number of times. | string , count | repeat(string, count) |
replace | Replaces all occurrences of a substring with another substring. | string , from , to | replace(string, from, to) |
reverse | Reverses the given string or array. | value | reverse(value) |
rindex | Finds the last occurrence of a substring in the given string. | string , substring | rindex(string, substring) |
round | Rounds the given number to the nearest integer. | number | round(number) |
rtrimstr | Removes suffix string from input if it exists | s , right | rtrimstr(s, right) |
select | Returns value if condition is true, None otherwise | v , f | select(v, f) |
set_check | Creates a markdown list node with the given checked state. | list , checked | set_check(list, checked) |
set_ref | Sets the reference identifier for markdown nodes that support references (e.g., Definition, LinkRef, ImageRef, Footnote, FootnoteRef). | node , reference_id | set_ref(node, reference_id) |
slice | Extracts a substring from the given string. | string , start , end | slice(string, start, end) |
sort | Sorts the elements of the given array. | array | sort(array) |
split | Splits the given string by the specified separator. | string , separator | split(string, separator) |
starts_with | Checks if the given string starts with the specified substring. | string , substring | starts_with(string, substring) |
sub | Subtracts the second value from the first value. | value1 , value2 | sub(value1, value2) |
test | Tests if string matches a pattern | s , pattern | test(s, pattern) |
to_array | Converts input to an array | a | to_array(a) |
to_code | Creates a markdown code block with the given value and language. | value , language | to_code(value, language) |
to_code_inline | Creates an inline markdown code node with the given value. | value | to_code_inline(value) |
to_csv | Converts the given value to a CSV. | value | to_csv(value) |
to_date | Converts a timestamp to a date string with the given format. | timestamp , format | to_date(timestamp, format) |
to_date_iso8601 | Formats a date to ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) | d | to_date_iso8601(d) |
to_em | Creates a markdown emphasis (italic) node with the given value. | value | to_em(value) |
to_h | Creates a markdown heading node with the given value and depth. | value , depth | to_h(value, depth) |
to_hr | Creates a markdown horizontal rule node. | | to_hr() |
to_html | Converts the given markdown string to HTML. | markdown | to_html(markdown) |
to_image | Creates a markdown image node with the given URL, alt text, and title. | url , alt , title | to_image(url, alt, title) |
to_link | Creates a markdown link node with the given url and title. | url , value , title | to_link(url, value, title) |
to_math | Creates a markdown math block with the given value. | value | to_math(value) |
to_math_inline | Creates an inline markdown math node with the given value. | value | to_math_inline(value) |
to_md_list | Creates a markdown list node with the given value and indent level. | value , indent | to_md_list(value, indent) |
to_md_name | Returns the name of the given markdown node. | markdown | to_md_name(markdown) |
to_md_table_row | Creates a markdown table row node with the given values. | cells | to_md_table_row(cells) |
to_md_text | Creates a markdown text node with the given value. | value | to_md_text(value) |
to_number | Converts the given value to a number. | value | to_number(value) |
to_string | Converts the given value to a string. | value | to_string(value) |
to_strong | Creates a markdown strong (bold) node with the given value. | value | to_strong(value) |
to_text | Converts the given markdown node to plain text. | markdown | to_text(markdown) |
to_tsv | Converts the given value to a TSV. | value | to_tsv(value) |
trim | Trims whitespace from both ends of the given string. | input | trim(input) |
trunc | Truncates the given number to an integer by removing the fractional part. | number | trunc(number) |
tsv2table | Convert tsv string to markdown table | tsv | tsv2table(tsv) |
type | Returns the type of the given value. | value | type(value) |
uniq | Removes duplicate elements from the given array. | array | uniq(array) |
upcase | Converts the given string to uppercase. | input | upcase(input) |
update | Update the value with specified value. | target_value , source_value | update(target_value, source_value) |
url_encode | URL-encodes the given string. | input | url_encode(input) |