Skip to content

rustdoc: Suggest to turn 'http...' into an automatic link #77501

Closed
@HackAttack

Description

@HackAttack

It would be nice if a raw hyperlink (with no markup) in a doc comment were rendered out as an anchor tag, à la GitHub. Otherwise you have to write

/// Check out this link: [https://example.com](https://example.com)
fn foo();

This would maximize readability in the code while slightly improving the generated HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-markdown-parsingArea: Markdown parsing for doc-commentsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions