News for hackers. Stuff that matters.
Re:Why modern software is slow by torstenvl on Thursday September 29, 2022 @11:59PM (#33030745)
Seems like Markdown could be rendered 1-3 lines at a time, depending on line-height. It isn't like other formats where formatting information is spread all over the place.
Re:Why modern software is slow by eyelidlessness on Friday September 30, 2022 @12:12AM (#33030833)
Type two backticks, everything below is fine. Type one more… the entire rest of the syntax tree is potentially a new tree. Backspace, do the whole thing again.
Re:Why modern software is slow by worthless-trash on Friday September 30, 2022 @12:34AM (#33030990)
Behavior solvable.

When a user inserts to backticks, insert the closing backticks immediately.

Re:Why modern software is slow by MauranKilom on Friday September 30, 2022 @05:17AM (#33032731)
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.

Re:Why modern software is slow by worthless-trash on Sunday October 02, 2022 @05:22AM (#33054359)
This 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.

Re:Why modern software is slow by eyelidlessness on Friday September 30, 2022 @02:12AM (#33031557)
That solves your problem but probably doesn’t solve the user’s.