As you know we can use in wikitext the single and triple backticks. It results in displaying the content in code format, and not rendering it.
- Backticks are very useful when writing content about tiddlywiki code itself, just as we use it here.
If however you use double backticks it is likely to be treated as a single backtick with a surplus backtick, and this surplus backtick, will then go on to affect future back ticks in use.
- That is, not only do double backticks not do anything useful, they tend to corrupt the rendering process.
- Also if you use single backticks by default they are highlighted in red, unlike when we use
single backticks
here in Discourse. - If you use triple backticks in tiddlywiki you get a similar result to here;
This is in triple backticks
I would like to propose we make double backticks into valid wikitext that we can use to wrap an inline piece of text into the code format without making the text red.
- This is something I want to do a lot, when writing about tiddlywiki code but I have to change CSS to stop use of the red text for the whole wiki.
- I believe introducing a valid double backtick should be backwards compatible because in the past you had to avoid it.
- If someone mistakenly uses double backticks when they mean single/or triple backticks by adding this new wikitext, it will thus “fail gracefully”.
- To me this would provide another shortcut to displaying code inline but without the red which tends to “give rise to alarm”. It reduces single character failures in wikitext and makes use of another wise neglected wikitext symbol(s).
Of interest here, is if we used double backticks in Discourse for example here
they work in the same way I propose for tiddlywiki. So such content will work here.
- This in many ways supports the validity of my proposal.
What do you think?
- Can you see any problems with implementing this?
- I know backticks have being used in unusual ways in a core I don’t understand, possibly to ensure something is not rendered.
- I can possibly define the new parser but if you think you can please share.
Matters arising;
- Can you find other places where single character errors throw TiddlyWiki Script and wikitext into disarray?. Please share, perhaps similar approaches could add more features to wiki text while making it less fragile and more in keeping with other markup/markdown.