Evaluate does not inject the react props into MarkDown links #2600
Labels
🙅 no/wontfix
This is not (enough of) an issue for this project
👎 phase/no
Post cannot or will not be acted on
Initial checklist
Affected package
@mdx-js/[email protected]
Steps to reproduce
Context
A client-side React application
Repro
Actual behavior
The email prop is correctly injected into the text part of the link, but not into the href.
<h3>Reach us by email: <a href="mailto:%7Bprops.email%7D">[email protected]</a></h3>
My first guess what that Url encoding occurred before the injection, but I've had a similar behavior using an actual 'a' tag.
My second guess is that it's a security matter, but that's a real limitation in my case.
Expected behavior
I wonder if it's an issue or an intended behavior.
And I am interested if there is a way to force the injection.
Runtime
Any web browser
Package manager
[email protected]
Operating system
Windows 11
Build and bundle tools
webpack
The text was updated successfully, but these errors were encountered: