Mark Amery

Results 116 comments of Mark Amery

Thinking about it, I figure it'd make sense to add an `ignoreNewlineAtEof` option for this. But I don't want to add that until https://github.com/kpdecker/jsdiff/pull/219 is fixed.

Looks like there's a process to deprecate the DefinitelyTyped types that we should follow when we do this - see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/20258 for an example.

Hmm. Interesting. The file is there - see https://www.npmjs.com/package/diff/v/5.2.0 and navigate to `lib/index.mjs` - so I wonder what's going wrong? I do *not* have a very good understanding of JavaScript...

I can't reproduce this: ``` mark@fractal:~$ mkdir test mark@fractal:~$ cd test mark@fractal:~/test$ npm init This utility will walk you through creating a package.json file. It only covers the most common...

Pretty sure the merge code in `merge.js` is meant to be able to support this, but there are open bug reports about it, it's not documented, and I'm not totally...

No longer planned. Closing as a dupe of https://github.com/kpdecker/jsdiff/issues/181, but I personally am not gonna tackle that; sorry!

`diffSentences`, right now, purports to simply diff two strings of "text" - not of Markdown. But the rules you want only make sense if the text is Markdown and the...

No such option currently; we don't have any concept of customising edit costs / penalties. Implementing anything along these lines would probably be a pretty major algorithm change, I think...

I'll have a think about this, and will read up on diffing algorithms that allow custom gap penalties (like Smith-Waterman and Needleman-Wunsch) but if I ultimately conclude that this would...

Makes sense, but figuring out how to adapt the logic in `applyPatch` is not entirely trivial. That logic assumes that the changes are a series of hunks with line numbers...