Skip to main content

Crate k2f_markdown

Crate k2f_markdown 

Source
Expand description

K2F semantic tree → Markdown (no layout / no package unpack).

Used by k2f_sdk::k2f_to_markdown (full package) and by viewers for selection copy without pulling k2f_layout.

Structs§

MarkdownEmitOptions
NodeCharRange

Functions§

apply_inline_markdown
byte_to_char
UTF-8 byte offset → character index (clamps to nearest prior char boundary).
char_to_byte
Character index → UTF-8 byte offset (clamped to char boundaries / string end).
document_to_markdown
escape_md
Escape K2F plain text so re-import does not treat punctuation as Markdown.
nodes_to_markdown
selection_to_markdown
Build a filtered semantic subtree from character ranges, then emit Markdown.
slice_text_node
Slice a text node’s value by UTF-8 character indexes; remap modifier byte ranges.