aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-30 09:27:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-30 09:27:02 -0700
commit209aa512b2936b781f656cb05efd9b3d4fe801a4 (patch)
tree98367667a2dd6cec0fcc71a20dbe9201483a73b7
parentaf1a3a5d88cc8e79527bc832eb24aae24f5c25a6 (diff)
parent7292f6d7557aa0bedd753a41f80c9ea717349c4f (diff)
Merge pull request #342 from dgreen99/master
add spec examples showing the use of fragment identifiers in links
-rw-r--r--spec.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec.txt b/spec.txt
index ee8cc19..2242daf 100644
--- a/spec.txt
+++ b/spec.txt
@@ -6031,6 +6031,23 @@ in Markdown:
<p><a href="foo):">link</a></p>
.
+A link can start with a fragment identifier:
+
+.
+[link](#fragment)
+.
+<p><a href="#fragment">link</a></p>
+.
+
+
+A link can start also contain a a fragment identifier:
+
+.
+[link](http://example.com#fragment)
+.
+<p><a href="http://example.com#fragment">link</a></p>
+.
+
Note that a backslash before a non-escapable character is
just a backslash: