Skip to content

Commit 78d8268

Browse files
JohelEGPAshe Connor
authored andcommitted
Fix valid domain ambiguity (commonmark#151)
1 parent 17169ab commit 78d8268

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/spec.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9203,11 +9203,13 @@ circumstances. All such recognized autolinks can only come at the beginning of
92039203
a line, after whitespace, or any of the delimiting characters `*`, `_`, `~`,
92049204
and `(`.
92059205

9206-
An [extended www autolink](@) will be recognized when the text `www.` is found
9207-
followed by a [valid domain]. A [valid domain](@) consists of alphanumeric
9208-
characters, underscores (`_`), hyphens (`-`) and periods (`.`). There must be
9209-
at least one period, and no underscores may be present in the last two segments
9210-
of the domain.
9206+
An [extended www autolink](@) will be recognized
9207+
when the text `www.` is found followed by a [valid domain].
9208+
A [valid domain](@) consists of segments
9209+
of alphanumeric characters, underscores (`_`) and hyphens (`-`)
9210+
separated by periods (`.`).
9211+
There must be at least one period,
9212+
and no underscores may be present in the last two segments of the domain.
92119213

92129214
The scheme `http` will be inserted automatically:
92139215

0 commit comments

Comments
 (0)