Class FlexmarkDoxiaLinkResolver

java.lang.Object
org.apache.maven.doxia.module.markdown.FlexmarkDoxiaLinkResolver
All Implemented Interfaces:
com.vladsch.flexmark.html.LinkResolver

public class FlexmarkDoxiaLinkResolver extends Object implements com.vladsch.flexmark.html.LinkResolver
The FlexmarkDoxiaLinkResolver rewrites the md, markdown links to html. Sample links it rewrites: - doc.md to doc.html - doc.markdown to doc.html - doc.md#anchor to doc.html#anchor - doc.markdown#anchor to doc.html#anchor - ../doc.markdown#anchor to ../doc.html#anchor - :doc.md to :doc.html - :doc.markdown to :doc.html Sample links it leaves untouched: - http://doc.md - https://doc.markdown - doc.md.badformat - doc.md#bad#format - doc.md#bad.format
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Factory that creates FlexmarkDoxiaLinkResolver objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final Pattern
     

    Fields inherited from interface com.vladsch.flexmark.html.LinkResolver

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlexmarkDoxiaLinkResolver(com.vladsch.flexmark.html.renderer.LinkResolverBasicContext context)
    Constructor for FlexmarkDoxiaLinkResolver.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vladsch.flexmark.html.renderer.ResolvedLink
    resolveLink(com.vladsch.flexmark.util.ast.Node node, com.vladsch.flexmark.html.renderer.LinkResolverBasicContext context, com.vladsch.flexmark.html.renderer.ResolvedLink link)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • FlexmarkDoxiaLinkResolver

      public FlexmarkDoxiaLinkResolver(com.vladsch.flexmark.html.renderer.LinkResolverBasicContext context)

      Constructor for FlexmarkDoxiaLinkResolver.

      Parameters:
      context - a LinkResolverBasicContext object.
  • Method Details

    • resolveLink

      public com.vladsch.flexmark.html.renderer.ResolvedLink resolveLink(com.vladsch.flexmark.util.ast.Node node, com.vladsch.flexmark.html.renderer.LinkResolverBasicContext context, com.vladsch.flexmark.html.renderer.ResolvedLink link)
      Specified by:
      resolveLink in interface com.vladsch.flexmark.html.LinkResolver