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

Don't let section start token break unclosed parent node #311

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

xxyzz
Copy link
Collaborator

@xxyzz xxyzz commented Sep 26, 2024

it shouldn't pop nodes in parser stack if it's inside an unclosed node like a template

fixes #310

it shouldn't pop nodes in parser stack if it's inside an unclosed node
like a template
Copy link
Collaborator

@kristian-clausal kristian-clausal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the test at the end seems to pass, the problem in the last post in the issue (about contenu3 being the child of the level 3 node?) seems to be fixed? Otherwise, all these changes seem correct. Sometimes there is no correct way to do things, and I suspect the way Wikitext works might be one of them.

@kristian-clausal kristian-clausal merged commit 59b8406 into tatuylonen:main Sep 30, 2024
5 checks passed
@xxyzz xxyzz deleted the section_node_in_template branch September 30, 2024 06:02
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.

Section node in template parameter shouldn't break parsing template node
2 participants