Module utils

Source

Enums§

CalloutIcon
Representation of a call‑out icon.

Functions§

add_tab_space
Helper for inserting tab‑level indentation (4‑space “tabs”).
bold
Bold – **text**.
bullet
Unordered / ordered list helpers.
callout
Call‑out block replicating Notion‑style markup.
code_block
Fenced code‑block with an optional language identifier. Defaults to plaintext.
divider
Horizontal rule.
equation
Display equation block (double‑dollar fenced).
heading1
Heading helpers.
heading2
heading3
image
Helper that converts an image URL to Markdown, optionally embedding as base64. Follows the behaviour of the original JS implementation.
inline_code
Wrap text with back‑ticks – inline code.
inline_equation
Wrap an inline equation with single $ delimiters.
italic
Italic – _text_.
link
Hyperlink – [text](href).
quote
Blockquote – handles multi‑line strings.
strikethrough
Strikethrough – ~~text~~.
table
Simple Markdown table generator. Pads each column to the width of the longest cell – sufficient for unit‑test purposes.
todo
Task‑list item.
toggle
Details/summary toggle block.
underline
Underline using an inline HTML <u> tag (GitHub‑flavoured Markdown passthrough).