Skip to content

Question: Two characters for parsing (move cursor backward?) #646

Answered by colinodell
joshbruce asked this question in Q&A
Discussion options

You must be logged in to vote

This isn't working, the parser for my extension is not being called, apparently.

This suggests that a different parser with a higher priority (or with the same priority) is running before your parser and basically returning true to say that "I handled this, nobody else needs to."

For example, FootnoteRefParser is added with a priority of 51:

$environment->addInlineParser(new FootnoteRefParser(), 51);

Try adding your parser to the environment with a higher priority so it is checked sooner.

Why is the return of getCharacters an array?

The purpose of getCharacters() is to provide a performance op…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage
2 participants
Converted from issue

This discussion was converted from issue #508 on June 12, 2021 14:01.