summaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt38
1 files changed, 32 insertions, 6 deletions
diff --git a/spec.txt b/spec.txt
index 6a38cd7..df2104e 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1007,7 +1007,7 @@ An [indented chunk](@indented-chunk) is a sequence of non-blank lines,
each indented four or more spaces. The contents of the code block are
the literal contents of the lines, including trailing
[line ending]s, minus four spaces of indentation.
-An indented code block has no attributes.
+An indented code block has no [info string].
An indented code block cannot interrupt a paragraph, so there must be
a blank line between a paragraph and a following indented code block.
@@ -2030,7 +2030,7 @@ kinds of blocks forms a [paragraph](@paragraph).
The contents of the paragraph are the result of parsing the
paragraph's raw content as inlines. The paragraph's raw content
is formed by concatenating the lines and removing initial and final
-spaces.
+[whitespace].
A simple example with two paragraphs:
@@ -4376,15 +4376,16 @@ And this is not parsed as a link:
<p>[not a <code>link](/foo</code>)</p>
.
-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="`">`
.
-<p><a href="http://foo.bar.%60baz">http://foo.bar.`baz</a>`</p>
+<p><code>&lt;a href=&quot;</code>&quot;&gt;`</p>
.
-And this is an HTML tag:
+But this is an HTML tag:
.
<a href="`">`
@@ -4392,6 +4393,22 @@ And this is an HTML tag:
<p><a href="`">`</p>
.
+And this is code:
+
+.
+`<http://foo.bar.`baz>`
+.
+<p><code>&lt;http://foo.bar.</code>baz&gt;`</p>
+.
+
+But this is an autolink:
+
+.
+<http://foo.bar.`baz>`
+.
+<p><a href="http://foo.bar.%60baz">http://foo.bar.`baz</a>`</p>
+.
+
When a backtick string is not closed by a matching backtick string,
we just have literal backticks:
@@ -5832,6 +5849,15 @@ emphasis grouping:
<p><a href="baz*">foo *bar</a></p>
.
+Note that brackets that *aren't* part of links do not take
+precedence:
+
+.
+*foo [bar* baz]
+.
+<p><em>foo [bar</em> baz]</p>
+.
+
These cases illustrate the precedence of HTML tags, code spans,
and autolinks over link grouping: