Skip to content

Feature Request: Support disabling autolinks for specified URL protocols #607

Description

@Kenneth-Kuo

Problem Statement

Need a way to turn off autolink for certain protocols like mailto. Maybe add a prop like disableAutolinkProtocols={['mailto']}.
Thanks.

Proposed Solution

Add a new prop (e.g. disableAutolinkProtocols) to Streamdown that accepts an array of URL protocols to disable autolinking for.
Internally, customize or extend the remark plugin (remark-gfm) to skip autolinking for the specified protocols (e.g. mailto).
This gives users fine-grained control over which protocols get autolinked.

Alternatives Considered

No response

Use Case

Priority

No response

Contribution

  • I am willing to help implement this feature

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions