diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs
index 581a93e68..b7a2b06ea 100644
--- a/src/Text/Pandoc/Readers/DocBook.hs
+++ b/src/Text/Pandoc/Readers/DocBook.hs
@@ -1342,6 +1342,7 @@ parseInline (Elem e) =
"sect5" -> descendantContent "title" el
"cmdsynopsis" -> descendantContent "command" el
"funcsynopsis" -> descendantContent "function" el
+ "figure" -> descendantContent "title" el
_ -> qName (elName el) <> "_title"
where
xrefLabel = attrValue "xreflabel" el
diff --git a/test/docbook-xref.docbook b/test/docbook-xref.docbook
index ebcd94d00..a83657b6b 100644
--- a/test/docbook-xref.docbook
+++ b/test/docbook-xref.docbook
@@ -24,6 +24,9 @@ cross-reference text: .
A link to an
funcsynopsis element: .
+A link to a
+figure element: .
+
@@ -65,6 +68,14 @@ cross-reference text: .
+
+
-
diff --git a/test/docbook-xref.native b/test/docbook-xref.native
index 2983eac0c..bcfe434a4 100644
--- a/test/docbook-xref.native
+++ b/test/docbook-xref.native
@@ -141,6 +141,33 @@ Pandoc
, Str "."
]
]
+ , [ Para
+ [ Str "A"
+ , Space
+ , Str "link"
+ , Space
+ , Str "to"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "figure"
+ , Space
+ , Str "element:"
+ , Space
+ , Link
+ ( "" , [] , [] )
+ [ Str "The"
+ , Space
+ , Str "Pythagorean"
+ , Space
+ , Str "Theorem"
+ , Space
+ , Str "Illustrated"
+ ]
+ ( "#fig01" , "" )
+ , Str "."
+ ]
+ ]
]
, Header
1
@@ -174,4 +201,17 @@ Pandoc
, Plain [ Str "int1" ]
, Plain [ Str "int" ]
, Plain [ Str "int2" ]
+ , Para
+ [ Image
+ ( "fig01" , [] , [] )
+ [ Str "The"
+ , Space
+ , Str "Pythagorean"
+ , Space
+ , Str "Theorem"
+ , Space
+ , Str "Illustrated"
+ ]
+ ( "figures/pythag.png" , "fig:" )
+ ]
]