You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub supports a "difference mode" in its Markdown support. This can be demonstrated e.g. on this repository here by selecting the "Rich diff":
Capture
The difference algorithm seems to be at least vaguely syntax-aware, so this isn't necessarily handled on its own by just a Myers diff. Is it possible for comrak to support such a difference mode?
The text was updated successfully, but these errors were encountered:
I actually worked on this feature when I was at GitHub. It's not a complicated process; I vaguely remember it being a process where the before and after nodes of the HTML trees were walked, with a diff on children that were added or removed.
I don't know whether comrak should support this natively per se, but one can already walk through the AST on their own. Would a code sample showing that be helpful? How would you ultimately use this feature?
GitHub supports a "difference mode" in its Markdown support. This can be demonstrated e.g. on this repository here by selecting the "Rich diff":
The difference algorithm seems to be at least vaguely syntax-aware, so this isn't necessarily handled on its own by just a Myers diff. Is it possible for comrak to support such a difference mode?
The text was updated successfully, but these errors were encountered: