valentinnodan / mdx-intellij-plugin

MIT License
8 stars 2 forks source link

Plugin marks used elements as unused imports #26

Open danon opened 2 years ago

danon commented 2 years ago

If you have this content, then everything is fine:

import run from "./replit.run.png";

<a href="https://repl.it/github/T-Regx/fiddle"><img src={run} alt="repl.it example"/></a>

But when you try to mix MDX <img/> and Markdown links, then plugin doesn't recognize it.

import run from "./replit.run.png";

[<img src={run} alt="repl.it example"/>](https://repl.it/github/T-Regx/fiddle)

The import is marked as unused, and on commit the unused imports are removed (I know I can switch it off, but the imports shouldn't be marked as unused if they are used).