Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.6k
Closed
Labels
Description
I stumbled over some irregularities with how the Jira reader treats backslashes escaping special chars within an URL, I hope you can help:
I am using Pandoc 2.13.1
- Starting with this HTML:
<p>https://example.com/{*}info/</p>
- Let pandoc transform this from HTML to Jira Markdown yields this:
https://example.com/\{\*\}info/
I suppose (?), this is correct: All special characters are being escaped.
- Now use pandoc to transform this from Jira Markdown back to HTML yields this:
<p><a href="https://example.com/\{\*\}info/">https://example.com/\{\*\}info/</a></p>
... and here, the backslashes escaping some special chars should have been removed.
- Because if this text gets transformed back to Jira Markdown, now we end up with this:
[https://example.com/\\{\\*\\}info/|https://example.com/\%7B\*\%7Dinfo/]
where the escaping backslashes from step 3 have been replaced by html entities, end all spechial chars denoting those entities have themselves been escaped by a backslash - and they will recursively be replaced on the next pass-through, increasing the mess ever more.
Thanks! :-)