Class MarkupElement.Builder

    • Method Detail

      • setDeleted

        public MarkupElement.Builder setDeleted​(int start,
                                                int end)
        Mark a section of a message as deleted.
        Parameters:
        start - start index
        end - end index
        Returns:
        builder TODO javadoc me please
      • setEmphasis

        public MarkupElement.Builder setEmphasis​(int start,
                                                 int end)
        Mark a section of a message as emphasized.
        Parameters:
        start - start index
        end - end index
        Returns:
        builder TODO javadoc me please
      • setCode

        public MarkupElement.Builder setCode​(int start,
                                             int end)
        Mark a section of a message as inline code.
        Parameters:
        start - start index
        end - end index
        Returns:
        builder TODO javadoc me please
      • addSpan

        public MarkupElement.Builder addSpan​(int start,
                                             int end,
                                             Set<SpanElement.SpanStyle> styles)
        Add a span element.
        Parameters:
        start - start index
        end - end index
        styles - list of text styles for that span
        Returns:
        builder TODO javadoc me please
      • setBlockQuote

        public MarkupElement.Builder setBlockQuote​(int start,
                                                   int end)
        Mark a section of a message as block quote.
        Parameters:
        start - start index
        end - end index
        Returns:
        builder TODO javadoc me please
      • setCodeBlock

        public MarkupElement.Builder setCodeBlock​(int start,
                                                  int end)
        Mark a section of a message as a code block.
        Parameters:
        start - start index
        end - end index
        Returns:
        builder TODO javadoc me please
      • build

        public MarkupElement build()
        Build a Message Markup element.
        Returns:
        extension element