valentinnodan / mdx-intellij-plugin

MIT License
8 stars 2 forks source link

imports added above frontmatter #13

Open CodeAndWeb opened 3 years ago

CodeAndWeb commented 3 years ago

Imports are added above the frontmatter block see this video:

https://www.dropbox.com/s/nqbyx9cixq29lwm/2021-04-20_17-52-45.mp4?dl=0

It's sometimes even worse: It completely deletes the frontmatter.

MDX version 211.1.2 but also had the issue with older versions. PhpStorm 2021.1.1.

CodeAndWeb commented 3 years ago

Any update? Do you need more information?

anstarovoyt commented 3 years ago

@CodeAndWeb Hi! Could you please share a sample project? Or at least the file from the video.

CodeAndWeb commented 3 years ago

Sure: https://github.com/CodeAndWeb/phpstorm-mdx-bug

The project is just a quick copy of some stuff to demonstrate the bug. Does not really do anything useful...

The resulting file:

import Header from "../components/header";
---
frontmatter: yes
---

# test

<Header
CodeAndWeb commented 3 years ago

Any updates?

CodeAndWeb commented 3 years ago

Do the examples I sent you help you solve the issue? Did anything happen here?

CodeAndWeb commented 3 years ago

I am closing this issue since nobody seems to care...

anstarovoyt commented 3 years ago

Hi! We've reproduced the issue, but it is tricky to fix it, so it is still open.