Allow safeProtocol to be passed as a parameter for defaultUrlTransform
Author: janpeCreated Apr 24, 2026Updated Jun 7, 2026
Labels🤞 phase/open
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
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
Source: remarkjs/react-markdown