Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public Scanner scanner() {
return scanner;
}

public InlineParser addInlineParser(Character c, List<InlineContentParser> parsers) {
this.inlineParsers.put(c, parsers);
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this will currently override any existing built-in parsers with that same special character. I think we should do the same thing as for block parsers, see

public Builder customBlockParserFactory(BlockParserFactory blockParserFactory) {

So try the custom parsers first. The custom parser can decide not to handle something, in which case the built-in parsers are tried next.

this.specialCharacters.set(c);
return this;
}

private static void addDelimiterProcessors(Iterable<DelimiterProcessor> delimiterProcessors, Map<Character, DelimiterProcessor> map) {
for (DelimiterProcessor delimiterProcessor : delimiterProcessors) {
char opening = delimiterProcessor.getOpeningCharacter();
Expand Down