RFR: 8371896: Links in snippets can not be highlighted
Chen Liang
liach at openjdk.org
Tue Nov 18 17:41:25 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.
Marked as reviewed by liach (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/28354#pullrequestreview-3479004497
More information about the javadoc-dev
mailing list