Comments (4)
I think this may be as simple as the code below.
var HtmlDiff = new diff.Diff(true)
HtmlDiff.tokenize = function(value) {
return removeEmpty(value.split(/(<>[{}:;,]|\s+)/));
}
var diffs = HtmlDiff.diff(revision1, revision2)
from jsdiff.
@webchaz could you elaborate on what you are looking for?
from jsdiff.
the problem is not solved
from jsdiff.
Closing in favor of #71. Moving discussion there.
from jsdiff.
Related Issues (20)
- `parsePatch` should preserve "leading garbage" HOT 1
- Turn strict mode on by default in `parsePatch` HOT 2
- Provide an example of how to use applyPatches from Node in the docs
- `callback` option has a weird signature
- createPatch & createTwoFilesPatch throw meaningless exceptions if structuredPatch returns undefined HOT 1
- Support callback option in patch-creation functions
- applyPatch with a `fuzzFactor` will happily delete an entirely different line to the one shown in the diff HOT 1
- Document (and throw an error over) the incompatibility between newlineIsToken and ignoreWhitespace
- Unexpected diffArrays result on a basic example HOT 5
- Support diffs with substitutions
- Race condition with this.options in async mode?
- diffJson throws on `Object.create(null)` in some cases
- Failed to resolve entry for package "diff". The package may have incorrect main/module/exports HOT 3
- [HELP] Different result when changing order of parameters? HOT 6
- `oneChangePerToken` option removed? HOT 1
- unexpected diffchars result HOT 3
- At the end of the compared text, when there is a punctuation mark, something goes wrong HOT 1
- Performance improvement suggestion
- Shadcn installation error : Error Module not found HOT 2
- Getting text dif with line numbers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsdiff.