Skip to main content

Module docref

Module docref 

Source
Expand description

Document references: a bare id, a page URL, a websocket URL, or a project path link.

Structs§

PathLink
A page URL for a project path: https://server/p/<project>/<path…>.

Functions§

parse
k3F9xQ2mLp, https://semora/d/k3F9xQ2mLp/page.md, wss://semora/ws/d/k3F9xQ2mLp → k3F9xQ2mLp.
parse_path_link
Ok(None) when s is not a project link. A link to a project page (no path) is an error.
resolve
The document id a reference names. Ids and /d/ and /ws/d/ URLs are read offline; a path link is looked up on the server. A path link is checked first, so a path that holds d/<id> is still a path link.