Displaying syntactic diffs is a really hard problem. GumTree has instructions for using it with Docker, so it's easy to try: https://github.com/GumTreeDiff/gumtree/tree/main/docker#usage
I compared some C++ with difftastic. GumTree does pretty well in the first case, but it's highlighting too much in the second.
I write a considerable amount of markdown these days, but I've developed a numbering style that is deliberately not part of the syntax.
(1) Foo.
Bar.
(2) Baz.
Auto (re-)numbering can be really surprising, and numbered sections tend to be narrower and harder to read.