Can't escape [[ ]] wikilinks
CompletedI have WikiLinks turned on in preferences. As a result, if I include the text [[test]], the preview shows a link of the word "test", with no square-brackets visible. Well and good.
However, if in an unusual instance I want to escape those brackets, so they appear in the preview, I can't find a way of doing so. Preceding individual bracket characters with \ or / doesn't seem to work consistently.
So putting a / between the first two brackets breaks the WikiLink and displays all the brackets, but also displays the / symbol. But putting \ in the same place appears to do nothing. (The same holds if one of the characters is placed between the closing brackets.)
Stranger still, even using backticks to try to turn the brackets and enclosed term into inline code doesn't make the brackets appear, and the link remains. The brackets also fail to appear in a fenced code block (starting and ending with lines consisting of ``` )
-
The wiki linking inside of code blocks is fixed for the next update.
When you escape a character in Multi/Markdown, the character still comes through in the output, sans the backslash. The preview generates its wiki links by looking for [[text]], which is going to exist exactly the same whether you escape or not. There's not a lot I can do to mitigate that situation.
-Brett
0 -
One possibility, though aesthetically not optimal, is to use a space instead of a backslash, e.g. `[ [foo]]` or `[[foo] ]`
0 -
That's a good idea. I don't mind the aesthetics; I was using a note to break down and decipher a shell script/command, and one of the components of a sed command including [[:space:]] ... ideally, when I annotate code, I prefer avoiding any kind of escaping. I realize a code block would do that for me, but I like the formatting of definition list. Can't have everything, however — going forward, I'll just use a code block.
0 -
After the next update goes out, you'll have the option of using a code span (`code`) to prevent them from being rendered as wikilinks in addition to code blocks.
0
Please sign in to leave a comment.
Comments
4 comments