Commit a1585a4895d451398cd5851867f153d50380f0b3

Lea Verou 2012-07-16T19:31:04

Line highlight plugin: Docs for linking

diff --git a/plugins/line-highlight/index.html b/plugins/line-highlight/index.html
index f665cd6..a215233 100644
--- a/plugins/line-highlight/index.html
+++ b/plugins/line-highlight/index.html
@@ -56,7 +56,7 @@
 	
 	<p>You can also link to specific lines on any code snippet, by using the following as a url hash: <code>#{element-id}.{lines}</code> where 
 	<code>{element-id}</code> is the id of the <code>&lt;pre></code> element and <code>{lines}</code> is one or more lines or line ranges that follow the format
-	outlined above. For example, if there is an element with <code>id="play"</code> on the page, you can link to lines 5-6 by linking to <a href="#play.5-6">#play.5-6</a></p>
+	outlined above. For example, if there is an element with <code>id="play"</code> on the page, you can link to lines 5-6 by linking to <a href="plugins/line-highlight/#play.5-6">#play.5-6</a></p>
 </section>
 
 <section>
@@ -74,7 +74,7 @@
 	<h2>Line 43, starting from line 41</h2>
 	<pre data-line="43" data-line-offset="40" data-src="plugins/line-highlight/prism-line-highlight.js"></pre>
 	
-	<p><a href="#play.50-55,60">Linking example</a></p>
+	<p><a href="plugins/line-highlight/#play.50-55,60">Linking example</a></p>
 </section>
 
 <footer data-src="templates/footer.html" data-type="text/html"></footer>