org.commonmark.internal.inline.AsteriskDelimiterProcessor Java Examples

The following examples show how to use org.commonmark.internal.inline.AsteriskDelimiterProcessor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MarkwonInlineParser.java    From Markwon with Apache License 2.0 6 votes vote down vote up
@NonNull
@Override
public FactoryBuilder includeDefaults() {

    // by default enabled
    this.referencesEnabled = true;

    this.inlineProcessors.addAll(Arrays.asList(
            new AutolinkInlineProcessor(),
            new BackslashInlineProcessor(),
            new BackticksInlineProcessor(),
            new BangInlineProcessor(),
            new CloseBracketInlineProcessor(),
            new EntityInlineProcessor(),
            new HtmlInlineProcessor(),
            new NewLineInlineProcessor(),
            new OpenBracketInlineProcessor()));

    this.delimiterProcessors.addAll(Arrays.asList(
            new AsteriskDelimiterProcessor(),
            new UnderscoreDelimiterProcessor()));

    return this;
}
 
Example #2
Source File: InlineParserImpl.java    From 1Rramp-Android with MIT License 4 votes vote down vote up
public static Map<Character, DelimiterProcessor> calculateDelimiterProcessors(List<DelimiterProcessor> delimiterProcessors) {
    Map<Character, DelimiterProcessor> map = new HashMap<>();
    addDelimiterProcessors(Arrays.<DelimiterProcessor>asList(new AsteriskDelimiterProcessor(), new UnderscoreDelimiterProcessor()), map);
    addDelimiterProcessors(delimiterProcessors, map);
    return map;
}
 
Example #3
Source File: InlineParserImpl.java    From commonmark-java with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public static Map<Character, DelimiterProcessor> calculateDelimiterProcessors(List<DelimiterProcessor> delimiterProcessors) {
    Map<Character, DelimiterProcessor> map = new HashMap<>();
    addDelimiterProcessors(Arrays.<DelimiterProcessor>asList(new AsteriskDelimiterProcessor(), new UnderscoreDelimiterProcessor()), map);
    addDelimiterProcessors(delimiterProcessors, map);
    return map;
}