Enum Class MarkdownExtensions

java.lang.Object
java.lang.Enum<MarkdownExtensions>
org.concordion.api.option.MarkdownExtensions
All Implemented Interfaces:
Serializable, Comparable<MarkdownExtensions>, Constable

public enum MarkdownExtensions extends Enum<MarkdownExtensions>
Extensions to the Markdown language that can be enabled for Concordion Markdown.

Note that the following extensions are enabled by default:

  • TABLES - similar to what MultiMarkdown offers.
  • STRIKETHROUGH - ~~strikethroughs~~ as supported in Pandoc and Github.

The SMARTS, QUOTES and SMARTYPANTS extensions from Pegdown are currently not supported in Concordion Markdown, since the XOM parser fails due to unknown entity references for these characters.

Since:
2.0.0
  • Enum Constant Details

    • NONE

      public static final MarkdownExtensions NONE
      The default, standard markup mode without any extensions.
    • ABBREVIATIONS

      public static final MarkdownExtensions ABBREVIATIONS
      PHP Markdown Extra style abbreviations.
      See Also:
    • HARDWRAPS

      public static final MarkdownExtensions HARDWRAPS
      Enables the parsing of hard wraps as HTML linebreaks. Similar to what Github does.
      See Also:
    • DEFINITIONS

      public static final MarkdownExtensions DEFINITIONS
      PHP Markdown Extra style definition lists. Additionally supports the small extension proposed in the article referenced below.
      See Also:
    • FENCED_CODE_BLOCKS

      public static final MarkdownExtensions FENCED_CODE_BLOCKS
      PHP Markdown Extra style fenced code blocks.
      See Also:
    • SUPPRESS_HTML_BLOCKS

      public static final MarkdownExtensions SUPPRESS_HTML_BLOCKS
      Suppresses HTML blocks. They will be accepted in the input but not be contained in the output.
    • SUPPRESS_INLINE_HTML

      public static final MarkdownExtensions SUPPRESS_INLINE_HTML
      Suppresses inline HTML tags. They will be accepted in the input but not be contained in the output.
    • SUPPRESS_ALL_HTML

      public static final MarkdownExtensions SUPPRESS_ALL_HTML
      Suppresses HTML blocks as well as inline HTML tags. Both will be accepted in the input but not be contained in the output.
    • ATXHEADERSPACE

      public static final MarkdownExtensions ATXHEADERSPACE
      Requires a space char after Atx # header prefixes, so that #dasdsdaf is not a header.
    • FORCELISTITEMPARA

      public static final MarkdownExtensions FORCELISTITEMPARA
      Wrap a list item or definition term in

      tags if it contains more than a simple paragraph.

    • RELAXEDHRULES

      public static final MarkdownExtensions RELAXEDHRULES
      Allow horizontal rules without a blank line following them.
    • TASKLISTITEMS

      public static final MarkdownExtensions TASKLISTITEMS
      GitHub style task list items: - [ ] and - [x]
  • Method Details

    • values

      public static MarkdownExtensions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MarkdownExtensions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPegdownExtension

      public int getPegdownExtension()