Issue with Atlassian-Wiki-Renderer

We use atlassian-wiki-renderer to convert comment with attachment from issue to link to attachment.
And in case attachment is file(txt, html, pdf etc.) and name contains ‘@’ renderer doesn’t add link to attachment, return plain text wraped to html tag instead

comment: “some text\n\r[^file@.txt]”

expected result:


<p><span class="image-wrap" style=""><a id="10401_thumb" href="path_to_attachment" title="file@.txt" file-preview-type="image" file-preview-id="10401" file-preview-title="file@.txt"><img src="path_to_attachment" style="border: 0px solid black" /></a></span></p>

actual result:

<p>some text</p>

<p><span class="error">&#91;^file@.txt&#93;</span></p>