J2M icon indicating copy to clipboard operation
J2M copied to clipboard

Escape/unescape special characters in Markdown inline code

Open roryokane opened this issue 7 years ago • 1 comments

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.

roryokane avatar Mar 30 '17 23:03 roryokane