Package org.commonmark.parser
Interface InlineParserContext
- All Known Implementing Classes:
InlineParserContextImpl
public interface InlineParserContext
Context for inline parsing.
-
Method Summary
Modifier and TypeMethodDescription<D> D
getDefinition
(Class<D> type, String label) Look up a definition of a type for a given label.getLinkReferenceDefinition
(String label) Deprecated.
-
Method Details
-
getCustomInlineContentParserFactories
List<InlineContentParserFactory> getCustomInlineContentParserFactories()- Returns:
- custom inline content parsers that have been configured with
Parser.Builder.customInlineContentParserFactory(InlineContentParserFactory)
-
getCustomDelimiterProcessors
List<DelimiterProcessor> getCustomDelimiterProcessors()- Returns:
- custom delimiter processors that have been configured with
Parser.Builder.customDelimiterProcessor(DelimiterProcessor)
-
getCustomLinkProcessors
List<LinkProcessor> getCustomLinkProcessors()- Returns:
- custom link processors that have been configured with
Parser.Builder.linkProcessor(org.commonmark.parser.beta.LinkProcessor)
.
-
getCustomLinkMarkers
- Returns:
- custom link markers that have been configured with
Parser.Builder.linkMarker(java.lang.Character)
.
-
getLinkReferenceDefinition
Deprecated.Look up aLinkReferenceDefinition
for a given label.Note that the passed in label does not need to be normalized; implementations are responsible for doing the normalization before lookup.
- Parameters:
label
- the link label to look up- Returns:
- the definition if one exists,
null
otherwise
-
getDefinition
Look up a definition of a type for a given label.Note that the passed in label does not need to be normalized; implementations are responsible for doing the normalization before lookup.
- Returns:
- the definition if one exists, null otherwise
-
getDefinition(java.lang.Class<D>, java.lang.String)
withLinkReferenceDefinition
instead