Skip to content

Commit

Permalink
Use SimpleFigure in Texinfo writer.
Browse files Browse the repository at this point in the history
  • Loading branch information
argent0 committed Jun 29, 2021
1 parent 8765edf commit e074baf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Text/Pandoc/Writers/Texinfo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ blockToTexinfo (Plain lst) =
inlineListToTexinfo lst

-- title beginning with fig: indicates that the image is a figure
blockToTexinfo (Para [Image attr txt (src,tgt)])
| Just tit <- T.stripPrefix "fig:" tgt = do
blockToTexinfo (SimpleFigure attr txt (src, tit)) = do
capt <- if null txt
then return empty
else (\c -> text "@caption" <> braces c) `fmap`
Expand Down

0 comments on commit e074baf

Please sign in to comment.