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

Wrong behavior for html elements with no closing tag. #34

Open
anghelos opened this issue Apr 8, 2022 · 1 comment
Open

Wrong behavior for html elements with no closing tag. #34

anghelos opened this issue Apr 8, 2022 · 1 comment

Comments

@anghelos
Copy link

anghelos commented Apr 8, 2022

HTML tags that don't have a corresponding closing tag (ex: <img>, <br>, ...) cause the following elements to be indented, as if they were children.

For example, this:

<a><img></a>
<div>
    ...
</div>

Formats to this:

<a>
    <img></a>
    <div>
        ...
    </div>

Perhaps add some exceptions for specific tags?

Edit: fixed code styling.

@eseom
Copy link
Owner

eseom commented Apr 8, 2022

I think it cannot recognize auto closing tags. I will lookup the code
try

<a><img /></a>
<div>
    ...
</div>```

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

2 participants