public MessageML parse ( String message , JsonNode entities , JsonNode media ) throws InvalidInputException { this . index = 0 ; message = message . replace ( ( char ) 160 , ( char ) 32 ) ; String enriched = enrichMarkdown ( message , entities , media ) ; Node markdown = MARKDOWN_PARSER . parse ( enriched ) ; markdown . accept ( this ) ; return messageML ; }
Parse the Markdown message and entity JSON into a MessageML document .