bugbug
bugbug copied to clipboard
[code_review] Don't collapse whitespaces when posting comments
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1959255.
Considering the case mentioned in Bug 1959255, when posting the comment on Phabricator, it will be posted with the correct layout.
The issue is that the add-on does not show the layout when it is in the preview mode because we need to convert the text to an HTML layout.
Since Phabricator uses Remarkup instead of Markdown, we need to treat the text as Remarkup when converting it to HTML to match the expected behaviour.