how to define input as string
webchaz opened this issue · 1 comments
webchaz commented
Is there a way to define the input as two strings as oppose to two files?
rtfpessoa commented
Currently there is no way to do this, since we only invoke git directly.
And the feature it self seems out of context for the purpose of this project.
Still, you can probably use diff's method JsDiff.createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader)
and then feed it to diff2html, but I am not 100% sure.