Re: [PATCH] userdiff: support Markdown
- From
Emma Brooks <me@pluvano.com>
- Date
- Apr 21, 2020, 02:22 UTC
- Message-ID
- <20200421022256.GA29071@pluvano.com>
- In-Reply-To
- <20200421010035.13915-1-ash@sorrel.sh>
On 2020-04-21 02:00:35+0100, Ash Holland wrote:
Show 5 quoted lines
> I would also appreciate feedback on the word-diff pattern here, I have > no real idea what should constitute a word in a Markdown document, apart > from that it should probably be similar to the definition given for > Fountain, given that Fountain appears to have somewhat similar inline > syntax to Markdown.
Since Markdown can have raw HTML tags in many variants, it may make sense to extend the word pattern to "[^<>= \t]+" like HTML's pattern so tags starting/ending will not be considered part of a word.