Example: 1
Input:
(link:# text:text: example)
OR
(link:# text:text:example)
output:
<a href="#">text</a>
Example: 2
Input:
(link:# text: text: example)
output:
<a href="#">example</a>
So the problem might be quit obvious, how to escape the special characters? (I believe brackets are already taken care of, but not the ‘colon’)
I tried with backslash or encasing the entire string in quotes. The quotes are straightup ignored (single-, double-quots, backticks, neither work). The backslash does work but not entirely:
Input:
(link:# text: text\: example)
output:
<a href="#">text\: example</a>
It simply forgets to strip the escaping backslash in the endresult.
Any ideas/workarounds for this?