Figure.hs (pandoc-2.11.1.1) | : | Figure.hs (pandoc-2.11.2) | ||
---|---|---|---|---|
skipping to change at line 47 | skipping to change at line 47 | |||
, "Figure with `fig:` prefix in name" =: | , "Figure with `fig:` prefix in name" =: | |||
T.unlines [ "#+caption: Used as a metapher in evolutionary biology." | T.unlines [ "#+caption: Used as a metapher in evolutionary biology." | |||
, "#+name: fig:redqueen" | , "#+name: fig:redqueen" | |||
, "[[./the-red-queen.jpg]]" | , "[[./the-red-queen.jpg]]" | |||
] =?> | ] =?> | |||
para (image "./the-red-queen.jpg" "fig:redqueen" | para (image "./the-red-queen.jpg" "fig:redqueen" | |||
"Used as a metapher in evolutionary biology.") | "Used as a metapher in evolutionary biology.") | |||
, "Figure with HTML attributes" =: | , "Figure with HTML attributes" =: | |||
T.unlines [ "#+CAPTION: mah brain just explodid" | T.unlines [ "#+caption: mah brain just explodid" | |||
, "#+NAME: lambdacat" | , "#+name: lambdacat" | |||
, "#+ATTR_HTML: :style color: blue :role button" | , "#+attr_html: :style color: blue :role button" | |||
, "[[file:lambdacat.jpg]]" | , "[[file:lambdacat.jpg]]" | |||
] =?> | ] =?> | |||
let kv = [("style", "color: blue"), ("role", "button")] | let kv = [("style", "color: blue"), ("role", "button")] | |||
name = "fig:lambdacat" | name = "fig:lambdacat" | |||
caption = "mah brain just explodid" | caption = "mah brain just explodid" | |||
in para (imageWith (mempty, mempty, kv) "lambdacat.jpg" name caption) | in para (imageWith (mempty, mempty, kv) "lambdacat.jpg" name caption) | |||
, "LaTeX attributes are ignored" =: | , "LaTeX attributes are ignored" =: | |||
T.unlines [ "#+CAPTION: Attribute after caption" | T.unlines [ "#+caption: Attribute after caption" | |||
, "#+ATTR_LATEX: :float nil" | , "#+attr_latex: :float nil" | |||
, "[[file:test.png]]" | , "[[file:test.png]]" | |||
] =?> | ] =?> | |||
para (image "test.png" "fig:" "Attribute after caption") | para (image "test.png" "fig:" "Attribute after caption") | |||
, "Labelled figure" =: | , "Labelled figure" =: | |||
T.unlines [ "#+CAPTION: My figure" | T.unlines [ "#+caption: My figure" | |||
, "#+LABEL: fig:myfig" | , "#+label: fig:myfig" | |||
, "[[file:blub.png]]" | , "[[file:blub.png]]" | |||
] =?> | ] =?> | |||
let attr = ("fig:myfig", mempty, mempty) | let attr = ("fig:myfig", mempty, mempty) | |||
in para (imageWith attr "blub.png" "fig:" "My figure") | in para (imageWith attr "blub.png" "fig:" "My figure") | |||
, "Figure with empty caption" =: | , "Figure with empty caption" =: | |||
T.unlines [ "#+CAPTION:" | T.unlines [ "#+caption:" | |||
, "[[file:guess.jpg]]" | , "[[file:guess.jpg]]" | |||
] =?> | ] =?> | |||
para (image "guess.jpg" "fig:" "") | para (image "guess.jpg" "fig:" "") | |||
] | ] | |||
End of changes. 4 change blocks. | ||||
8 lines changed or deleted | 8 lines changed or added |