Class LinkScanner

java.lang.Object
org.commonmark.internal.util.LinkScanner

public class LinkScanner extends Object
  • Constructor Details

    • LinkScanner

      public LinkScanner()
  • Method Details

    • scanLinkLabelContent

      public static boolean scanLinkLabelContent(Scanner scanner)
      Attempt to scan the contents of a link label (inside the brackets), stopping after the content or returning false. The stopped position can bei either the closing ], or the end of the line if the label continues on the next line.
    • scanLinkDestination

      public static boolean scanLinkDestination(Scanner scanner)
      Attempt to scan a link destination, stopping after the destination or returning false.
    • scanLinkTitle

      public static boolean scanLinkTitle(Scanner scanner)
    • scanLinkTitleContent

      public static boolean scanLinkTitleContent(Scanner scanner, char endDelimiter)
    • scanLinkDestinationWithBalancedParens

      private static boolean scanLinkDestinationWithBalancedParens(Scanner scanner)
    • isEscapable

      private static boolean isEscapable(char c)