remarkjs / react-markdown

Markdown component for React
https://remarkjs.github.io/react-markdown/
MIT License
13.29k stars 876 forks source link

React-markdown isn't rendering phone number links anymore #829

Closed aligreene closed 6 months ago

aligreene commented 6 months ago

Initial checklist

Affected packages and versions

react-markdown v9.0.0

Link to runnable example

https://codesandbox.io/p/devbox/react-markdown-telephone-link-bug-3vsqry

Steps to reproduce

We recently updated from react-markdown ^8.0.3 to ^9.0.0 and since then, any phone link renders with no value in the link href.

See sandbox for runnable example, or follow steps below:

  1. Create a markdown telephone link e.g.: [123 456 789](tel:123456789)
  2. Check the output.

Expected behavior

The link is rendered in HTML with a href value: <a href="tel:123456789">123 456 789</a>

Actual behavior

The link renders without a href value: <a href="">123 456 789</a>

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

wooorm commented 6 months ago

See the changelog on how to pass a URL transform https://github.com/remarkjs/react-markdown/blob/main/changelog.md#add-urltransform.

github-actions[bot] commented 6 months ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

aligreene commented 6 months ago

Thanks very much