Class FootnoteLinkProcessor

java.lang.Object
org.commonmark.ext.footnotes.internal.FootnoteLinkProcessor
All Implemented Interfaces:
LinkProcessor

public class FootnoteLinkProcessor extends Object implements LinkProcessor
For turning e.g. [^foo] into a FootnoteReference, and ^[foo] into an InlineFootnote.
  • Constructor Details

    • FootnoteLinkProcessor

      public FootnoteLinkProcessor()
  • 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