J2M
J2M copied to clipboard
Escape/unescape special characters in Markdown inline code
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.