Expand description
The path grammar the engines share: segments with JSON Pointer escapes, ids and $labels,
and block paths.
Enumsยง
- Block
Part ๐ - What follows the root of a
BlockPath. - Block
Path ๐ - A block path split into its parts, before its id or label is resolved.
- ItemRef ๐
- How an id-or-label reference outside a path (
from,to_page, reorder values) was written.
Functionsยง
- escape_
segment ๐ segmentJSON Pointer escaped, to put in a path; the inverse ofunescape_segment.- is_
course_ ๐root - Whether a pathโs first segment names the course:
courseor the courseโs id. - parse_
block_ ๐path - Splits a block path into its parts;
Nonewhen it doesnโt start with/. - parse_
item_ ๐ref - Parses
pg7,/pg7,$xor/$x. - parse_
uuid ๐ - Parses a path segment as an id.
wholeis the full path, quoted in the error. - split_
path ๐ - The unescaped segments of a path;
Nonewhen it doesnโt start with/. - split_
segment ๐ - The first segment of
path(no leading/) and the rest, which starts with/or is empty. - unescape_
segment ๐ - A path segment with its JSON Pointer escapes (
~1for/,~0for~) undone.