diff options
| author | John MacFarlane <[email protected]> | 2025-09-02 08:39:47 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-09-02 08:39:47 +0200 |
| commit | 4d545b69fe66c37805de883a5b71afe5fdb7e984 (patch) | |
| tree | dfc82c2c915b2cf661b95985096a2517a7c5afdf /test | |
| parent | 5424d3eca0e127de7a59baea9b11649b1c17e5b2 (diff) | |
Change `latex-pos` to `latex-placement`.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Tests/Readers/Markdown.hs | 4 | ||||
| -rw-r--r-- | test/Tests/Writers/LaTeX.hs | 2 | ||||
| -rw-r--r-- | test/command/2118.md | 2 | ||||
| -rw-r--r-- | test/command/3577.md | 4 | ||||
| -rw-r--r-- | test/command/8745.md | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/test/Tests/Readers/Markdown.hs b/test/Tests/Readers/Markdown.hs index 677fa8ccb..1ce1273f0 100644 --- a/test/Tests/Readers/Markdown.hs +++ b/test/Tests/Readers/Markdown.hs @@ -580,8 +580,8 @@ tests = [ testGroup "inline code" ] , testGroup "figures" [ "latex placement" =: - "{latex-pos=\"htbp\" alt=\"alt text\"}" =?> - figureWith ("", [], [("latex-pos", "htbp")]) + "{latex-placement=\"htbp\" alt=\"alt text\"}" =?> + figureWith ("", [], [("latex-placement", "htbp")]) (simpleCaption $ plain "caption") (plain $ image (T.pack "img.jpg") (T.pack "") (text "alt text")) ] diff --git a/test/Tests/Writers/LaTeX.hs b/test/Tests/Writers/LaTeX.hs index c8d5fc130..09911e32b 100644 --- a/test/Tests/Writers/LaTeX.hs +++ b/test/Tests/Writers/LaTeX.hs @@ -244,7 +244,7 @@ tests = [ testGroup "code blocks" ] , testGroup "figures" [ "placement" =: - figureWith ("", [], [("latex-pos", "htbp")]) + figureWith ("", [], [("latex-placement", "htbp")]) (simpleCaption $ plain "caption") (plain $ image (pack "img.jpg") (pack "") (text "alt text")) =?> diff --git a/test/command/2118.md b/test/command/2118.md index 63611c8cb..cc1c930f8 100644 --- a/test/command/2118.md +++ b/test/command/2118.md @@ -8,7 +8,7 @@ \end{figure} ^D [ Figure - ( "fig:setminus" , [] , [] ) + ( "fig:setminus" , [] , [ ( "latex-placement" , "ht" ) ] ) (Caption Nothing [ Plain [ Str "Set" , Space , Str "subtraction" ] ]) [ Plain diff --git a/test/command/3577.md b/test/command/3577.md index 3c42c3490..063e41c72 100644 --- a/test/command/3577.md +++ b/test/command/3577.md @@ -15,7 +15,7 @@ \caption{Subfigure with Subfloat} \end{figure} ^D -<figure> +<figure data-latex-placement="ht"> <figure> <img src="img1.jpg" /> <figcaption>Caption 1</figcaption> @@ -34,7 +34,7 @@ \caption{Caption 3} \end{figure} ^D -<figure> +<figure data-latex-placement="ht"> <img src="img1.jpg" /> <figcaption>Caption 3</figcaption> </figure> diff --git a/test/command/8745.md b/test/command/8745.md index bb671489d..f422088da 100644 --- a/test/command/8745.md +++ b/test/command/8745.md @@ -16,7 +16,7 @@ Sample text ^D [ Para [ Str "Sample" , Space , Str "text" ] , Figure - ( "fig:Mondrian" , [] , [] ) + ( "fig:Mondrian" , [] , [ ( "latex-placement" , "ht" ) ] ) (Caption Nothing [ Plain |
