knowledge-catalog icon indicating copy to clipboard operation
knowledge-catalog copied to clipboard

okf: clarify URL encoding for cross-link targets (SPEC 5.4)

Open manumishra12 opened this issue 4 months ago • 0 comments

What

Adds a short subsection (SPEC section 5.4, "Link target encoding") clarifying whether OKF cross-link targets require URL/percent encoding — something section 5 does not currently address.

Clarification

  • Link targets are ordinary markdown/CommonMark destinations resolved as bundle paths, not pre-encoded URLs.
  • Producers SHOULD keep path segments URL-safe so no encoding is needed and a link resolves the same whether treated as a file path or a URL.
  • When a segment must contain a URL-unsafe character (for example a space), it MAY be percent-encoded per CommonMark, and consumers resolving against the filesystem SHOULD percent-decode before matching it to a concept path.

Additive and backward-compatible (SPEC section 11 minor-version rules); no existing bundle changes meaning.

Addresses #112.

manumishra12 avatar Jul 11 '26 21:07 manumishra12