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

[[]] and [[|]] should not be treated as wikilinks #292

Open
BrandonXLF opened this issue Jul 14, 2022 · 1 comment
Open

[[]] and [[|]] should not be treated as wikilinks #292

BrandonXLF opened this issue Jul 14, 2022 · 1 comment

Comments

@BrandonXLF
Copy link

BrandonXLF commented Jul 14, 2022

The strings "[[]]" and "[[|]]" (empty "wikilinks") are not treated as wikilinks by MediaWiki and shouldn't be treated as such here either.

@BrandonXLF BrandonXLF changed the title Empty "[[]]" and "[[|]]" should not be treated as wikilinks Empty should not be treated as wikilinks Jul 14, 2022
@BrandonXLF BrandonXLF changed the title Empty should not be treated as wikilinks Empty "wikilinks" should not be treated as wikilinks Jul 14, 2022
@BrandonXLF BrandonXLF changed the title Empty "wikilinks" should not be treated as wikilinks [[]] and `[[should not be treated as wikilinks Jul 14, 2022
@BrandonXLF BrandonXLF changed the title [[]] and `[[should not be treated as wikilinks [[]] and [[|]] should not be treated as wikilinks Jul 14, 2022
@lahwaacz
Copy link
Contributor

mwparserfromhell cannot always check if the tokens inside double brackets are empty or |. Consider e.g. [[{{echo|}}]] and [[{{!}}]], these are context-sensitive and mwparserfromhell has no chance to behave the same as MediaWiki because it does not expand templates.

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