You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandoc 1.19.2.4
Compiled with pandoc-types 1.17.0.5, texmath 0.9.4.4, skylighting 0.3.3.1
Description
Conversion of block element images from markdown to mediawiki produces captions that have the word "caption" prepended to them. Additionally their size designation is redundant and ignored by MediaWiki.
Input
![InSight lander on Mars (artist concept)](PIA22745-Mars-InSightLander-ArtistConcept-20181030.jpg){width=800}
Output
[[File:PIA22745-Mars-InSightLander-ArtistConcept-20181030.jpg|frame|none|800px|alt=|caption InSight lander on Mars (artist concept)]]
This is a screenshot of the rendering of this mediawiki snippet
And this is the caption. Notice the word caption in front. It is clearly not a label and should not be there.
Expected Output
[[File:PIA22745-Mars-InSightLander-ArtistConcept-20181030.jpg|thumb|none|800px|alt=|InSight lander on Mars (artist concept)]]
Steps to Reproduce
Create a file named wiki.md with the content described in "Input" above and convert to mediawiki with this command
This is quite significant as currently the only way to get functioning wiki pages from markdown is to resize the images, which has it's own set of problems since it loses compatibility with HiDPI displays and the possibility to have a larger image when the user clicks. Thus I argue that the correct fix would be to modify block images to be thumbs instead of framed.
The text was updated successfully, but these errors were encountered:
Version
Description
Conversion of block element images from markdown to mediawiki produces captions that have the word "caption" prepended to them. Additionally their size designation is redundant and ignored by MediaWiki.
Input
Output
This is a screenshot of the rendering of this mediawiki snippet
And this is the caption. Notice the word caption in front. It is clearly not a label and should not be there.
Expected Output
Steps to Reproduce
Create a file named
wiki.md
with the content described in "Input" above and convert to mediawiki with this commandInspect
output.wiki
Notes
Block level images with a size designation should translate to
thumb
instead offrame
as in mediawiki images in frames ignore the size.This is quite significant as currently the only way to get functioning wiki pages from markdown is to resize the images, which has it's own set of problems since it loses compatibility with HiDPI displays and the possibility to have a larger image when the user clicks. Thus I argue that the correct fix would be to modify block images to be thumbs instead of framed.
The text was updated successfully, but these errors were encountered: