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):
|
def get_diff_of_htmls(html1, html2):
|
||||||
diffutil = DiffMatchPatch()
|
diffutil = DiffMatchPatch()
|
||||||
diff = diffutil.diff_main(html1, html2)
|
diffs = diffutil.diff_main(html1, html2)
|
||||||
return diffutil.diff_pretty_html(diff)
|
diffutil.diff_cleanupSemantic(diffs)
|
||||||
|
return diffutil.diff_pretty_html(diffs)
|
||||||
|
|
||||||
__all__ = ["render", "get_diff_of_htmls", "render_and_extract"]
|
__all__ = ["render", "get_diff_of_htmls", "render_and_extract"]
|
||||||
|
|
Loading…
Reference in New Issue