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

Nested blank elements rendering #408

Open
tuanalumi opened this issue Apr 25, 2022 · 0 comments
Open

Nested blank elements rendering #408

tuanalumi opened this issue Apr 25, 2022 · 0 comments

Comments

@tuanalumi
Copy link

I have nested elements, say X inside Y, and both are blank:

<X>
  <Y data-name="abc"></Y>
</X>

Turndown processes both of them, and I can successfully convert Y to something meaningful (using blankReplacement). But for X, which is just a container, I am unable to use the rendered version of Y. Of course I can recursively render its children again, but it's not optimized.

Here is the link to the sandbox: https://codesandbox.io/s/optimistic-roentgen-8uq4rp?file=/src/index.js

Is there any workaround for this?

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