Hello,
I did not find related topics so I decided to make a post. If you wish to add customized pair to be auto closed, do the following:
(0. install codemirror and auto close brackets plugin)
- open the file
$:/plugins/tiddlywiki/codemirror/addon/edit/closebrackets.js - search for the string
(function(C){var r={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},You can find this by searching forpairs, the first result should be this. - add your pair after
pairs:", add the closing part aftercloseBefore:e.g.:
(function(C){var r={pairs:"$$()[]{}''\"\"",closeBefore:"$)]}'\":;>",triples:"",explode:"[]{}"},
- Save and Reload. This should work.
Note: I use Katex in markdown so I only need $$. I’m not sure if $$$$ will work.
That’s all. May you have a great day.