Class CoreLinkProcessor

java.lang.Object
org.commonmark.internal.inline.CoreLinkProcessor
All Implemented Interfaces:
LinkProcessor

public class CoreLinkProcessor extends Object implements LinkProcessor
  • Constructor Details

    • CoreLinkProcessor

      public CoreLinkProcessor()
  • Method Details

    • process

      public LinkResult process(LinkInfo linkInfo, Scanner scanner, InlineParserContext context)
      Specified by:
      process in interface LinkProcessor
      Parameters:
      linkInfo - information about the parsed link/image
      scanner - the scanner at the current position after the parsed link/image
      context - context for inline parsing
      Returns:
      what to do with the link/image, e.g. do nothing (try the next processor), wrap the text in a node, or replace the link/image with a node
    • process

      private static LinkResult process(LinkInfo linkInfo, Scanner scanner, String destination, String title)