Class MarkdownFormatter

  • All Implemented Interfaces:
    Formatter

    public class MarkdownFormatter
    extends java.lang.Object
    implements Formatter
    Version:
    As of 4.3.0
    See Also:
    Flexmark Java
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String descriptionToHtml​(java.lang.String value)
      Removes opening <p> and closing </p> if entire value is wrapped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MarkdownFormatter

        public MarkdownFormatter()
    • Method Detail

      • descriptionToHtml

        public java.lang.String descriptionToHtml​(java.lang.String value)
        Removes opening <p> and closing </p> if entire value is wrapped.
        Specified by:
        descriptionToHtml in interface Formatter
        Parameters:
        value - is a Description.value() or Parameter.description() with formatting instructions. If there are no formatting instructions, the same text value should be returned as is.
        Returns:
        HTML formatted value.