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§
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.