From 731415a4e598adaac894865f72b935a742e569ec Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Thu, 27 Sep 2012 15:40:09 -0700
Subject: RST reader: Support :target: on image substitutions.

---
 tests/rst-reader.native | 1 +
 tests/rst-reader.rst    | 6 ++++++
 2 files changed, 7 insertions(+)

(limited to 'tests')

diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index b49e9873e..d37ea7b60 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -226,6 +226,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":
 ,Para [Image [Str "image"] ("lalune.jpg","")]
 ,Para [Image [Str "Voyage dans la Lune"] ("lalune.jpg","")]
 ,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon",Str "."]
+,Para [Str "And",Space,Str "an",Space,Link [Image [Str "A movie"] ("movie.jpg","")] ("/url",""),Str "."]
 ,Header 1 [Str "Comments"]
 ,Para [Str "First",Space,Str "paragraph"]
 ,Para [Str "Another",Space,Str "paragraph"]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index e8dee7e3f..3e5c9d8c8 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -416,6 +416,12 @@ Here is a movie |movie| icon.
 
 .. |movie| image:: movie.jpg
 
+And an |image with a link|.
+
+.. |image with a link| image:: movie.jpg
+   :alt:  A movie
+   :target: /url
+
 Comments
 ========
 
-- 
cgit v1.2.3