Closed OmkarPh closed 7 months ago
Not trivial current way, and I don't think I'd want to add it, but https://github.com/kpdecker/jsdiff/issues/221 is a similar request and might give you the results you want here (if/when I implement it).
The one thing you can currently do is roll your own tokenization and equality-checking logic to get the behaviour you want.
I don't want the following to be detected as a diff. Ignoring the![image](https://github.com/kpdecker/jsdiff/assets/48476025/f6867cab-dd1e-4010-be39-be5b86a57fc4)
*
before & after this word should do the trick ig (I don't want to track special characters in my diff anyway)Is there any way to achieve this? I'm using
diffWords
here btw