Max Nikulin writes: > I have a more weird example. Consider you are going to get > > - [[#foo]] and [[#bar]] > > starting from > > - [[#bar]] > > There is no problem till > > - [[#foo[[#bar]] > > However in response to "]" point is moved after "[" > > - [[#foo][[#bar]] > > that is displayed as > > - [#bar > > I do not see other ways than undo, SPC, and moving back. It would be > great to keep point between brackets "][" this case. I have no > idea if it is feasible to postpone hiding link target when such pattern > is typed. May you try the attached patch (on top of the latest main)? Does it feel better?