In this PR onespaceman (if that’s is real name ) is attempting to replace some of the live preview stuff with a pure CSS solution. The “controversial” part is that live preview now activates for the entire paragraph (line) when the cursor “moves in” rather than the more granular expansion we have right now:
You can try it yourself by checking out his branch:
The current implementation, while not ideal, is my preferred choice. I don’t particularly enjoy the cursor jumping around, but I feel like the existing solution does it less.
An “ideal” solution in my mind would involve markdown’s special tokens floating around the text they enclose, thereby eliminating the paragraph growing and shrinking entirely. Although I don’t think CodeMirror has this functionality, nor have I seen it anywhere else.
Yeah. I agree that this makes the problem a little bit worth, so I wouldn’t go this way. Any ideas (and ideally: implementations of them) that reduce the jumping behavior would be highly appreciated.