Skip to content

Commit 055af5c

Browse files
committed
Documented that a link cannot contain an autolink (as per the spec), but that this is different from what cmark & cmark-gfm allow.
1 parent 4656a72 commit 055af5c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ Here are the known differences from the [specification](https://github.github.co
4444

4545
The specification says that tabs are replaced by spaces only when they take part in determining the indentation of an input line. Tabs inside the contents of a line are passed through unchanged. This implementation expands all tabs to spaces. (But that might change in the future.)
4646

47-
### `> in disallowed raw HTML
47+
### `>` in disallowed raw HTML
4848

4949
When encountering disallowed tags (`<title>`, `<textarea>`, `<style>` and others), this implementation replaces their `<` and `>` by `&lt;` and `&gt;`. The specification only replaces the `<`.
5050

5151
### Backslash in HTML tags
5252

5353
The specification does not allows backslashes to occur in HTML tags, except just before a newline. The implementation doesn't allow them before a newline either.
5454

55+
### No nested links
56+
57+
Not a difference from the specification, but a difference from the cmark and cmark-gfm implementations: Input such as such as `[<http://example.org/>](url)` produces `[<a href="http://example.org/">http://example.org/</a>](url)`. (If multiple link definitions appear nested inside each other, the inner-most definition is used.) But cmark/cmark-gfm produce `<a href="url"><a href="http://example.org/">http://example.org/</a></a>`.
58+
59+
5560
## Bugs
5661

5762
Two empty lines at the start of a list item should end the item (i.e., create an empty item), but don't. E.g.,
@@ -68,5 +73,3 @@ should create an empty list item and a paragraph, but instead creates a list ite
6873

6974
When two potential emphasis spans overlap, it is not always the first that takes precedence. (Violates ‘rule 15’.)
7075

71-
It is possible to create a nested link by putting an autolink inside another link: `[a link <http://example.org/path1> inside anchor text](http://example.org/path2)`. (The cmark and cmark-gfm implementations do this, too.)
72-

0 commit comments

Comments
 (0)