On Mon, 17 Nov 2025 15:20:28 GMT, Hannes Wallnöfer <[email protected]> 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 <[email protected]>
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

Reply via email to