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

Allowed <pre> tag in a <code> one #332

Closed symphony-elias closed 2 years ago

symphony-elias commented 2 years ago

Client was generating following PresentationML that was not considered valid by messageml-utils:

<div data-format="PresentationML" data-version="2.0">
  <code data-language="plaintext"><pre>Hello</pre></code>
</div>
svalerioferretti92 commented 2 years ago

LGTM and thank you very much @symphony-elias