Skip to content

Commit 4421c88

Browse files
committed
Use SimpleFigure in Textile writer.
1 parent b2e83a1 commit 4421c88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Text/Pandoc/Writers/Textile.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ blockToTextile opts (Div attr bs) = do
111111
blockToTextile opts (Plain inlines) =
112112
inlineListToTextile opts inlines
113113

114-
-- title beginning with fig: indicates that the image is a figure
115-
blockToTextile opts (Para [Image attr txt (src,T.stripPrefix "fig:" -> Just tit)]) = do
114+
blockToTextile opts (SimpleFigure attr txt src tit) = do
116115
capt <- blockToTextile opts (Para txt)
117116
im <- inlineToTextile opts (Image attr txt (src,tit))
118117
return $ im <> "\n" <> capt

0 commit comments

Comments
 (0)