Integrated: 8371896: Links in snippets can not be highlighted
Hannes Wallnöfer
hannesw at openjdk.org
Tue Nov 18 17:59:16 UTC 2025
On Mon, 17 Nov 2025 15:20:28 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:
> Please review a simple change to allow fragments of snippet content to act both as link and highlighted text. Previously, only the link was generated while the highlight was ignored.
>
> We also change snippet links to use the aequivalent of `{@linkplain}` instead of `{@link}` because the `<code>` element in `{@link}` markup is redundant in snippet content which is already inside a `<code>` element. `{@link}` also creates `PREVIEW` superscript flags which are likely to be disruptive in example code.
This pull request has now been integrated.
Changeset: 0e6c7e86
Author: Hannes Wallnöfer <hannesw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0e6c7e8664fdddd8b789851263613852fc2c55f7
Stats: 80 lines in 2 files changed: 64 ins; 2 del; 14 mod
8371896: Links in snippets can not be highlighted
Reviewed-by: liach
-------------
PR: https://git.openjdk.org/jdk/pull/28354
More information about the javadoc-dev
mailing list