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

Rendered Markdown preserves meaningless whitespace of original message #93

Open ldrozdz opened 5 years ago

ldrozdz commented 5 years ago

The formatting of the original MML/PML message gets serialized as MD whitespace. This is incorrect as indentation should be meaningless.

Repro: change the formatting of _payloads/templated_message_alltags.messageml or _payloads/expanded_single_jiraticket.presentationml and observe unit test failures. The tests should be insensitive to formatting.