Class HeadingAnchorExtension.Builder

java.lang.Object
org.commonmark.ext.heading.anchor.HeadingAnchorExtension.Builder
Enclosing class:
HeadingAnchorExtension

public static class HeadingAnchorExtension.Builder extends Object
  • Field Details

    • defaultId

      private String defaultId
    • idPrefix

      private String idPrefix
    • idSuffix

      private String idSuffix
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • defaultId

      public HeadingAnchorExtension.Builder defaultId(String value)
      Parameters:
      value - Default value for the id to take if no generated id can be extracted. Default "id"
      Returns:
      this
    • idPrefix

      public HeadingAnchorExtension.Builder idPrefix(String value)
      Parameters:
      value - Set the value to be prepended to every id generated. Default ""
      Returns:
      this
    • idSuffix

      public HeadingAnchorExtension.Builder idSuffix(String value)
      Parameters:
      value - Set the value to be appended to every id generated. Default ""
      Returns:
      this
    • build

      public Extension build()
      Returns:
      a configured extension