Module md.grammar

Class ContextFactory


  • public class ContextFactory
    extends Object
    • Constructor Detail

      • ContextFactory

        public ContextFactory()
    • Method Detail

      • createDocumentation

        public MutableDocumentation createDocumentation​(String documentation)
        Create markdown documentation as ordinary paragraphs
        Parameters:
        documentation - contents
        Returns:
        a mutable documentation object
      • createDocumentation

        public MutableDocumentation createDocumentation​(String documentation,
                                                        String format)
        Create markdown documentation as ordinary paragraphs
        Parameters:
        documentation - contents
        format - the format of the documentation. This corresponds to infostring of a fenced code block, as defined by the markdown specification. Originally, it was the name of a programming language to support syntax-specific highlighting. However, it has been extended to support various encodings, such as XML. In some cases, it may map to a media type.
        Returns:
        a mutable documentation object