finos / messageml-utils

MessageML is a markup language used by the Symphony Agent API for representing messages, including formatting (bold, italic, numbered and unnumbered lists etc.) and entity data representing structured objects.
https://docs.developers.symphony.com
Apache License 2.0
12 stars 28 forks source link

Fixed a bug occurring while parsing Markdown generated by Symphony Client #322

Closed thibauult closed 2 years ago

thibauult commented 2 years ago

PR related to PLAT-11690 Some developers recently noticed that Agent API Bridge was returning error:

Unable to process message with ID xxx in stream xxx due to: Failed to build Markdown: Parent of block must also be block (can not be inline)

The issue is happening when Agent receives replied or forwarded messages since those ones are sent in Markdown format from the Symphony Clients (Mana or 1.5).

This PR contains an example used to reproduce the issue. More examples and more testing will need to be done regarding the Markdown parsing capability of the library.