5 ms·
Cool, now explain how to do it for backspace. And now explain how anyone can ever turn existing text into a code block if every user action is "modified" to no
by MauranKilom 4y ago
Cool, now explain how to do it for backspace.
And now explain how anyone can ever turn existing text into a code block if every user action is "modified" to not turn existing text into a code block.
- worthless-trash 4y agoThis may be obvious but if you're trashing the second pair of backticks you obviously want the rest of it to be inside the backticks which required the first re-render so its not a mistake, the user made the request , follow through, render till the next set of bacticks into a block.. no trailing backticks ? Render everything.. thats the choice the user made. > And now explain how anyone can ever turn existing text into a code block if every user action is "modified" to not turn existing text into a code block. At no point did I mention that you couldnt wrap code in bacticks, I simply said the default insert would NOT have single pair backticks opening up to a forced re-render of every trailing element.