Class AutolinkExtension

java.lang.Object
org.commonmark.ext.autolink.AutolinkExtension
All Implemented Interfaces:
org.commonmark.Extension, org.commonmark.parser.Parser.ParserExtension

public class AutolinkExtension extends Object implements org.commonmark.parser.Parser.ParserExtension
Extension for automatically turning plain URLs and email addresses into links.

Create it with create() and then configure it on the builders (Parser.Builder.extensions(Iterable), HtmlRenderer.Builder.extensions(Iterable)).

The parsed links are turned into normal Link nodes.

  • Method Details

    • create

      public static org.commonmark.Extension create()
    • extend

      public void extend(org.commonmark.parser.Parser.Builder parserBuilder)
      Specified by:
      extend in interface org.commonmark.parser.Parser.ParserExtension