-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image scaling during MediaWiki to Markdown conversion #10
Comments
Wow, according to http://stackoverflow.com/questions/24383700/resize-image-in-the-wiki-of-github-using-markdown GFM no longer supports the height or width syntax mentioned above. |
Looks like we'll have to switch to minimal HTML snippets for images, see for example http://stackoverflow.com/questions/22485796/markdown-smaller-images-sizes-not-supported-by-github
This might work better with |
According to recent commit jgm/pandoc@244cd56 pandoc 1.16 will add basic support for image sizes. This appears to understand the height/width attributes when parsing mediawiki input: jgm/pandoc@244cd56#diff-f003790849ba78911adb2e3836757776L577 It remains to be seen it would be rendered when we request GFM output... jgm/pandoc#2554 |
This ought to work with the pandoc fix (see issue linked to above), just need to find/make a test case to confirm this! |
Reported by @vincentdavis on issue #1
Some images are scaled, e.g. in http://biopython.org/wiki/Phylo or its MediaWiki equivalent https://github.com/peterjc/peterjc.github.io/blob/master/wiki/Phylo.mediawiki
which becomes after conversion to GFM markdown with pandoc https://github.com/peterjc/peterjc.github.io/blob/master/wiki/Phylo.md
On the actual wiki the image URL is:
http://biopython.org/w/images/thumb/0/04/Phylo-draw-apaf1.png/256px-Phylo-draw-apaf1.png
If you what to see the full size image
http://biopython.org/w/images/0/04/Phylo-draw-apaf1.png
@vincentdavis found a document that suggests code like this can be used for scaling images.
The text was updated successfully, but these errors were encountered: