docs: def _is_free_link_end(self, this, next):
          """Return whether the current head is the end of a free link."""
          # Built from _parse()'s end sentinels:
          after, ctx = self._read(2), self._context
          equal_sign_contexts = contexts.TEMPLATE_PARAM_KEY | contexts.HEADING
          return (this in (self.END, "\n", "[", "]", "<", ">") or
                  this == next == "'" or
                  (this == "|" and ctx & contexts.TEMPLATE) or
                  (this == "=" and ctx & equal_sign_contexts) or
                  (this == next == "}" and ctx & contexts.TEMPLATE) or
                  (this == next == after == "}" and ctx & contexts.ARGUMENT))