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

JSX: Recognize nested tags inside attributes #733

Open
noahlt opened this issue Nov 8, 2024 · 0 comments
Open

JSX: Recognize nested tags inside attributes #733

noahlt opened this issue Nov 8, 2024 · 0 comments
Labels
ya-osn Open-source Night Yandex event

Comments

@noahlt
Copy link

noahlt commented Nov 8, 2024

Abstract React components are not well-supported; Emmet doesn't seem to recognize nested tags inside attributes, because it uses HTML logic for parsing tags, and this only happens in JSX.

Given this example:

export default function Test() {
  return (
    <AbstractComponent
      render={() => {
        return (
          <p>example</p>
        );
      }}
    />
  );
}

If you select the <p> element and run "wrap with abbreviation", it tries to wrap the entire <AbstractComponent ... /> rather than just the <p>example</p>.

Thanks for all your wonderful work on Emmet!

@sergeche sergeche added the ya-osn Open-source Night Yandex event label Dec 1, 2024
sergeche added a commit to emmetio/html-matcher that referenced this issue Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ya-osn Open-source Night Yandex event
Projects
None yet
Development

No branches or pull requests

2 participants