Humanize markdown diffs
parent
0eb6311f85
commit
12c10034a7
|
@ -112,7 +112,8 @@ class DiffMatchPatch(diff_match_patch.diff_match_patch):
|
|||
|
||||
def get_diff_of_htmls(html1, html2):
|
||||
diffutil = DiffMatchPatch()
|
||||
diff = diffutil.diff_main(html1, html2)
|
||||
return diffutil.diff_pretty_html(diff)
|
||||
diffs = diffutil.diff_main(html1, html2)
|
||||
diffutil.diff_cleanupSemantic(diffs)
|
||||
return diffutil.diff_pretty_html(diffs)
|
||||
|
||||
__all__ = ["render", "get_diff_of_htmls", "render_and_extract"]
|
||||
|
|
Loading…
Reference in New Issue