Skip to main content

Module markers

Module markers 

Source
Expand description

Universal XML marker resolution for <gap:target>.

All formats use <gap:target id="..."> / </gap:target> markers. The gap: namespace prefix is uniquely identifiable and LLMs follow XML tags reliably. JSON uses pointer addressing instead.

Functions§

extract_targets
Extract all target IDs from artifact content by scanning for <gap:target id="..."> markers.
find_target_range
Find the byte range of a target’s content within a string.
find_target_range_inclusive
Find the byte range of a target including its markers.
markers_for
Build start and end markers for a target ID.