Skip to content
New issue

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

MDX img parsing #1596

Open
Its-Just-Nans opened this issue Dec 23, 2024 · 0 comments
Open

MDX img parsing #1596

Its-Just-Nans opened this issue Dec 23, 2024 · 0 comments

Comments

@Its-Just-Nans
Copy link
Contributor

MDX are not parsed correctly

Reproduce

test.mdx

# A Test

Some link in text [here](https://example.com/foo.png)

<img src="https://example.com/bar.png" />

<img src={"https://example.com/boo.png"} />

<img src='https://example.com/buu.png' />

<img src={'https://example.com/bii.png'} />

<img src={`https://example.com/${variable}`} />

import Img from "./img.png";

<img src={Img} />

Run

cargo run test.mdx -v

Result

[EXCLUDED] https://example.com/foo.png
[EXCLUDED] https://example.com/bar.png
[EXCLUDED] https://example.com/buu.png
[EXCLUDED] https://example.com/bii.png
[EXCLUDED] https://example.com/boo.png

Issues found in 1 input. Find details below.

[test.mdx]:
   [ERROR] file:///home/n4n5/tmp/tmp.mqqx3sEeAi/lychee/%7BImg%7D | Cannot find file

🔍 6 Total (in 0s) ✅ 0 OK 🚫 1 Error 👻 5 Excluded

Problem

I think variable as src should be ignored, in this case src={Img} should be ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant