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

<ref> should ignore whitespace preformatted lines #339

Merged
merged 1 commit into from
Nov 18, 2024
Merged

<ref> should ignore whitespace preformatted lines #339

merged 1 commit into from
Nov 18, 2024

Conversation

kristian-clausal
Copy link
Collaborator

Fixes second part of #336

When we would normally be pushing a layer of NodeKind.PREFORMATTED, check if the stack has any HTML-elements with the <ref> tag and if that is the case don't push PREFORMATTED.

If other HTML-like tags need this in the future (onlyinclude? includeonly??) then this is the place where to add those checks.

Looking through the stack could be better. Filter? Any? Oh yeah, duh.

@xxyzz
Copy link
Collaborator

xxyzz commented Nov 18, 2024

Thanks for the fix! And I also add the "p" tag to the "if" check line.

@xxyzz xxyzz merged commit 40e41d2 into main Nov 18, 2024
10 checks passed
@xxyzz xxyzz deleted the pre-refs branch November 18, 2024 01:35
@kristian-clausal
Copy link
Collaborator Author

Thanks for finishing this for me while I was away, lol, I just figured out what was happening; in my branch, I had a commit that removed the for loop and replaced it with any(), and I was confused why I was getting merge conflicts.

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

Successfully merging this pull request may close these issues.

2 participants