code: public void parseMarkdown(String message, JsonNode entities, JsonNode media) throws InvalidInputException {
      this.messageML = markdownParser.parse(message, entities, media);
      this.entityJson = messageML.asEntityJson(this.entityJson);
      this.markdownRenderer = new MarkdownRenderer(messageML.asMarkdown());
    }
docs: Parse a Markdown message into its MessageMLV2 representation. Generates document tree structures for
  serialization into output formats with the respective get() methods.
  @param message string containing a message in Markdown
  @param entities additional entity data in JSON