We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.0.1
No response
Basically I added a simple phone tel: link and it not passing href props
It should work as expected
Not passing props.
my code:
const components = { p: PComponent, h1: H1Component, h2: H2Component, h3: H3Component, h4: H4Component, h5: H5Component, h6: H6Component, strong: StrongComponent, em: EmComponent, a: AComponent, ul: UlComponent, ol: OlComponent, img: ImgComponent, blockquote: QuoteComponent, table: TableComponent, }; <Markdown remarkPlugins={[ remarkGfm, remarkCustomHeaderId, remarkParse, remarkLinkTarget, ]} rehypePlugins={[rehypeRaw]} components={components} > {markdown} </Markdown> function AComponent({ children, href = '#', ...props }: LinkProps) { console.log('AComponent', {href, props, children}); if (href.startsWith('tel:')) { return ( <a href={href} {...props}> {children} </a> ); } else { return ( <TextLink href={href} {...props}> {children} </TextLink> ); } }
node 20
The text was updated successfully, but these errors were encountered:
Tried also on your md editr online and not working
Sorry, something went wrong.
It is working. It is removed. Read the docs. You want to define urlTransform.
urlTransform
No branches or pull requests
Initial checklist
Affected packages and versions
9.0.1
Link to runnable example
No response
Steps to reproduce
Basically I added a simple phone tel: link and it not passing href props
Expected behavior
It should work as expected
Actual behavior
Not passing props.
my code:
Affected runtime and version
node 20
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: