Re: [PATCH] doc: fix unmatched code fences
- From
Jeff King <peff@peff.net>
- Date
- May 13, 2015, 03:45 UTC
- Message-ID
- <20150513034553.GA25025@peff.net>
- In-Reply-To
- <xmqqk2wdcfbb.fsf@gitster.dls.corp.google.com>
On Tue, May 12, 2015 at 08:43:52PM -0700, Junio C Hamano wrote:
Show 19 quoted lines
> Jeff King <peff@peff.net> writes: > > > With this patch and the one from Jean-Noel, the script above finds only > > one hit, which is a false positive. It's at git-commit.txt:233, and it > > looks like: > > > > It is a rough equivalent for: > > ------ > > $ git reset --soft HEAD^ > > $ ... do something else to come up with the right tree ... > > $ git commit -c ORIG_HEAD > > > > ------ > > > > I have no idea how asciidoc knows that this is a code block and not a > > title called "It is a rough...". > > It obviously is not a title underline as the lengths are vastly > different.
Yes, but Python Asciidoc allows the lengths to differ. So clearly it uses some kind of heuristic, or this is some context in the parser that disambiguates the case.
-Peff