remarkjs / remarkjs/react-markdown

Allow safeProtocol to be passed as a parameter for defaultUrlTransform

Open
#941 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🤞 phase/open
Dominant language
JavaScript
Stars
15.9k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Initial checklist
Problem

Hello! I'd like to add tel to the allowed protocols but not deviate so much from defaultUrlTransform to write my own

Current solutions

Writing your own urlTransform. I don't prefer this since I'd like to follow the default even if changes in future versions.

Proposed solutions

I'd like to propose that the safeProtocol value used in defaultUrlTransform could be passed as a parameter

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the defaultUrlTransform entry point and the safeProtocol value it uses. Review the surrounding urlTransform behavior and existing tests, then confirm that safeProtocol can be supplied as a parameter so protocols such as tel can be allowed without replacing the default transform.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.