Class TablesExtension.Builder

java.lang.Object
org.commonmark.ext.gfm.tables.TablesExtension.Builder
Enclosing class:
TablesExtension

public static class TablesExtension.Builder extends Object
  • Field Details

    • maxCells

      private Integer maxCells
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maxCells

      public TablesExtension.Builder maxCells(Integer maxCells)
      Set the maximum number of cells that are parsed for a single table; if more cells are present in the source, parsing will throw an exception. This is to guard against malicious input.

      The default is TablesExtension.DEFAULT_MAX_CELLS; use null for no limit.

    • build

      public Extension build()
      Returns:
      a configured extension