Open chucker opened 8 months ago
Update me?
This PR is still a draft. Should I review regardless?
If you're OK with a highlighter that (unlike Progle's) only works on visible text, I can rebase this. Otherwise, we need a new approach first.
It seems like the highlighter can not always highlight the revealed snippet:
So, the highlighting in its current form is only helpful sometimes? Maybe we should try a new approach.
This technically works:
However, one weakness is that the highlighter doesn't get context from the concealed code. Progle even goes so far as to highlight the concealed characters. We can't do that with this design.
What we probably should do instead is retrieve "what would it have highlighted?" back, then conceal it.