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

Easy syntax conflict #18

Closed
colintedford opened this issue Feb 2, 2015 · 4 comments
Closed

Easy syntax conflict #18

colintedford opened this issue Feb 2, 2015 · 4 comments
Labels

Comments

@colintedford
Copy link

I just belatedly updated from "Ponder Stibbons" to "Hrun" and my redirects using the #redirect syntax now show "1. redirect [pagename]" instead of redirecting. The ~~REDIRECT> style still works, but of course my existing redirects use #redirect because it's easier to type.

@jayqi
Copy link

jayqi commented Feb 20, 2015

Are you perhaps using the Creole plugin or some other plugin that uses # as the syntax for an ordered list? That looks to be what is happening. I am using Creole, and I have the same syntax conflict, so I've been stuck using the ~~REDIRECT> option.

@colintedford
Copy link
Author

Aha, I am using the Creole plugin; thanks for dispelling the mystery.

@colintedford colintedford changed the title Easy syntax not working Easy syntax conflict Feb 21, 2015
@glensc
Copy link
Owner

glensc commented Sep 24, 2016

looks like parser::parse():118 prepends \n to document and creole matches \n# first, breaking pageredirect plugin able to match full word

so even if your document content is: #redirect start when document is parsed it becames \n#redirect start\n

and here's creole pattern that is overly greedy: syntax_plugin_creole_listblock::connectTo()

             $this->Lexer->addEntryPattern(
                '\n[ \t]*[\#\*](?!\*)',
                $mode,
                'plugin_creole_listblock'
             );

@glensc
Copy link
Owner

glensc commented Sep 24, 2016

should be fixed with 36ebf4a

@glensc glensc closed this as completed Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants