From 9abc1336da9730fb6ddb766aca193f1923d3a02f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 5 Jan 2015 21:01:15 -0800 Subject: Clarified precedence of code spans, HTML tags, autolinks. Closes #259. --- spec.txt | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'spec.txt') diff --git a/spec.txt b/spec.txt index 6a38cd7..d43900c 100644 --- a/spec.txt +++ b/spec.txt @@ -4376,15 +4376,16 @@ And this is not parsed as a link:

[not a link](/foo)

. -But this is a link: +Code spans, HTML tags, and autolinks have the same precedence. +Thus, this is code: . -` +`` . -

http://foo.bar.`baz`

+

<a href="">`

. -And this is an HTML tag: +But this is an HTML tag: . ` @@ -4392,6 +4393,22 @@ And this is an HTML tag:

`

. +And this is code: + +. +`` +. +

<http://foo.bar.baz>`

+. + +But this is an autolink: + +. +` +. +

http://foo.bar.`baz`

+. + When a backtick string is not closed by a matching backtick string, we just have literal backticks: -- cgit v1.2.3