Skip to content

Add 'data' as valid URI protocol #283

Description

@fhollermayer

I would like to render anchor tags with data-URIs. Right now links passed via source property will be sanitized by react-markdown/src/uri-transformer.js to match one of the predefined protocols 'http', 'https', 'mailto' or 'tel'.

Adding 'data' to the collection would allow me to render asynchronously loaded files as links inside of localized markdown.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions