Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Escape/unescape special characters in Markdown inline code #28

Open
roryokane opened this issue Mar 30, 2017 · 1 comment
Open

Escape/unescape special characters in Markdown inline code #28

roryokane opened this issue Mar 30, 2017 · 1 comment

Comments

@roryokane
Copy link

Markdown input:

Try `arr[0]`.

Actual output by J2M:

Try {{arr[0]}}.

But JIRA still processes formatting within {{ }} code blocks, so the [0] is interpreted as a link. The expected, correct output should \ backslash-escape characters in the code that JIRA would recognize:

Try {{arr\[0\]}}.

I don't personally need conversion the other way around, but that should work too. Try {{arr\[0\]}}. should turn into Try `arr[0]`. rather than Try `arr\[0\]`.

Sadly, {{noformat}} doesn't work to combine inline code and special characters; only backslash-escaping does.

@FokkeZB
Copy link
Owner

FokkeZB commented Mar 31, 2017

O my... these exceptions. If you have a PR I'd be happy to review, but personally I don't have time to work on it, sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants