diff options
| author | Julia Diaz <[email protected]> | 2023-10-17 17:16:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-17 09:16:00 -0700 |
| commit | fa3513b104e089a8969f3ae0dab98eba78b1a942 (patch) | |
| tree | f1d89ccbf6ee52fd22ec6cc77e161da2403a54cb /test/jats-reader.native | |
| parent | 802c610923b364a4a10f59eccb5f1d0b7176ab53 (diff) | |
JATS reader: fix handling of alt-text (#9134)
Previously we were looking for an attribute that doesn't exist in
JATS; alt-text is provided by a child element.
Closes #9130.
Diffstat (limited to 'test/jats-reader.native')
| -rw-r--r-- | test/jats-reader.native | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/test/jats-reader.native b/test/jats-reader.native index d1c36405d..51048dd5a 100644 --- a/test/jats-reader.native +++ b/test/jats-reader.native @@ -745,6 +745,8 @@ Pandoc , Para [ Str "Einstein" , Space + , Str "definitely" + , Space , Str "showed" , Space , Str "that" @@ -754,10 +756,29 @@ Pandoc [ Para [ Str "Abstract" , Space , Str "text" ] , Para [ Image - ( "" , [] , [] ) - [] + ( "graphic001" + , [ "This" + , "is" + , "the" + , "role" + , "of" + , "the" + , "graphic" + ] + , [] + ) + [ Str "Alternative" + , Space + , Str "text" + , Space + , Str "of" + , Space + , Str "the" + , Space + , Str "graphic" + ] ( "https://lh3.googleusercontent.com/dB7iirJ3ncQaVMBGE2YX-WCeoAVIChb6NAzoFcKCFChMsrixJvD7ZRbvcaC-ceXEzXYaoH4K5vaoRDsUyBHFkpIDPnsn3bnzovbvi0a2Gg=s660" - , "" + , "This is the title of the graphic" ) ] , Para [ Math DisplayMath "e=mc^2" ] @@ -802,11 +823,14 @@ Pandoc [ Para [ Str "Abstract" , Space , Str "text" ] , Para [ Image - ( "" , [] , [] ) - [] - ( "https://lh3.googleusercontent.com/dB7iirJ3ncQaVMBGE2YX-WCeoAVIChb6NAzoFcKCFChMsrixJvD7ZRbvcaC-ceXEzXYaoH4K5vaoRDsUyBHFkpIDPnsn3bnzovbvi0a2Gg=s660" - , "" - ) + ( "graphic003" , [] , [] ) + [ Str "Alternative" + , Space + , Str "text" + , Space + , Str "1" + ] + ( "Title 3" , "" ) ] , Para [ Math DisplayMath "e=mc^2" ] ] @@ -821,6 +845,12 @@ Pandoc , Space , Str "because\8230" ] + , Figure + ( "fig-1" , [] , [] ) + (Caption Nothing [ Plain [ Str "bar" ] ]) + [ Plain [ Str "alternative-decription" ] + , Para [ Image ( "" , [] , [] ) [] ( "foo.png" , "" ) ] + ] , Header 1 ( "code-blocks" , [] , [] ) |
