Skip to content

Reference to label in preamble are broken #746

Open
@Julow

Description

@Julow
(** {1:L1 Some label} *)
module M : sig
  type t
  (** Ref 1: {!L1} *)
end

(** Ref 2: {!L1} *)

(** Ref 3: {!M.L1} *)

In this example, refs 1 and 2 resolve to Test/index.html#L1 and ref 3 doesn't.
The heading labeled L1 is part of the preamble of M but not its synopsis. It is rendered into the page for M but not in the top-level page (where the anchor L1 doesn't exist).

The expected behavior is: refs 1 and 3 resolve to Test/M/index.html#L1 and ref 2 does not.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions