Class MarkdownRenderer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static com.vladsch.flexmark.parser.Parser parser  
      protected static com.vladsch.flexmark.html.HtmlRenderer renderer  
    • Method Summary

      Modifier and Type Method Description
      RenderedContent apply​(RenderingScope scope)  
      long getVersion()
      The version of an element can depend on more than one property internally.
      boolean isValid()
      If all the versioned parts of this elements are equal or higher version than all of the dependencies, then this element is valid.
      java.lang.String wrapError​(java.lang.String error)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • parser

        protected static final com.vladsch.flexmark.parser.Parser parser
      • renderer

        protected static final com.vladsch.flexmark.html.HtmlRenderer renderer
    • Constructor Detail

      • MarkdownRenderer

        public MarkdownRenderer​(TemplateView template)
    • Method Detail

      • wrapError

        public java.lang.String wrapError​(java.lang.String error)
        Specified by:
        wrapError in interface Renderer
      • getVersion

        public long getVersion()
        Description copied from interface: Versioned
        The version of an element can depend on more than one property internally. Informally, the version of an element is the the lowest value of all the version properties of that element. This is a conservative back reference to the oldest contributing piece of data for that element, such that invalidation occurs based on the possibility that versions are not in sync, rather than any specific proof that they aren't.
        Specified by:
        getVersion in interface Versioned
        Returns:
        The version of the oldest part of a versioned element.
      • isValid

        public boolean isValid()
        Description copied from interface: Versioned
        If all the versioned parts of this elements are equal or higher version than all of the dependencies, then this element is valid. Said differently, if the highest version of all dependencies is equal to or lower than the lowest version of all the parts, then this element is valid.
        Specified by:
        isValid in interface Versioned
        Returns:
        true, if this element is valid with respect to dependencies.