Skip to content

Semantics of fragments in gemtext

Currently, there is no defined use for fragments in gemtext specification. (They could be useful, for instance when referring to gemini://gemini.circumlunar.space/docs/specification.gmi, to point to a specific section.) Several ways to address this issue were discussed on the mailing list:

  • state that they have no use and no meaning (if so, IMHO, it should be stated explicitely, it would also solve protocol#8)
  • use the structure of the gemtext (headers, lines) to have fragment identifiers like h2.4 (fourth second level header)
  • content-addressable text, the fragment would be a hash of part of the text
  • use fragment identifiers of RFC 5147 (not very robust, any change would break them but at least we would rely on an existing standard)
  • fragment identifier as a search query in the page (Control-F…)