git/Documentation
Ash Holland 09dad9256a userdiff: support Markdown
It's typical to find Markdown documentation alongside source code, and
having better context for documentation changes is useful; see also
commit 69f9c87d4 (userdiff: add support for Fountain documents,
2015-07-21).

The pattern is based on the CommonMark specification 0.29, section 4.2
<https://spec.commonmark.org/> but doesn't match empty headings, as
seeing them in a hunk header is unlikely to be useful.

Only ATX headings are supported, as detecting setext headings would
require printing the line before a pattern matches, or matching a
multiline pattern. The word-diff pattern is the same as the pattern for
HTML, because many Markdown parsers accept inline HTML.

Signed-off-by: Ash Holland <ash@sorrel.sh>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-05-02 18:04:12 -07:00
..
2020-03-09 07:57:57 -07:00
2020-04-22 13:43:01 -07:00
2019-05-09 00:37:27 +09:00
2020-04-22 13:42:55 -07:00
2018-06-25 13:22:36 -07:00
2020-03-22 16:38:30 -07:00
2019-08-07 12:37:33 -07:00
2020-02-14 08:58:53 -08:00
2019-08-11 17:40:07 -07:00
2019-04-02 13:57:00 +09:00
2019-08-11 17:40:07 -07:00
2019-01-23 11:37:29 -08:00
2019-03-18 14:45:21 +09:00
2020-05-02 18:04:12 -07:00
2018-12-26 14:59:37 -08:00
2019-05-07 13:04:48 +09:00
2020-03-30 10:39:48 -07:00
2019-05-07 13:04:48 +09:00
2019-05-07 13:04:48 +09:00
2019-04-02 13:57:00 +09:00
2020-03-30 10:39:48 -07:00
2019-10-21 12:02:39 +09:00