nix icon indicating copy to clipboard operation
nix copied to clipboard

Markdown link targets are lost in `:doc`

Open roberth opened this issue 7 months ago • 3 comments

Describe the bug

nix repl renders markdownlinks as normal text in yellow.

Steps To Reproduce

Load a flake with documented attributes, and use :doc on it.

nix repl nixpkgs
:doc lib

Expected behavior

Render OSC 8 codes to make the link work.

Alternatively, links could be rendered as a list of references at the end.

Metadata

Additional context

Checklist


Add :+1: to issues you find important.

roberth avatar Jun 02 '25 11:06 roberth

Looks like lowdown has added support for LOWDOWN_TERM_NORELLINK in 1.4.0 per @fricklerhandwerk's request originally from https://github.com/NixOS/nix/pull/6968. Could we just use that instead and render URLs as text? Terminal emulators would be able to render those as links.

xokdvium avatar Jun 03 '25 18:06 xokdvium

Discussed in Nix team meeting today:

@xokdvium has suggestions to configure and simplify the markdown rendering.

We don't seem to have strong reasons to stick to the current hacky setup, so we'd love to see this improved.

roberth avatar Jun 11 '25 20:06 roberth

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2025-06-11-nix-team-meeting-minutes-231/65543/1

nixos-discourse avatar Jun 11 '25 20:06 nixos-discourse