demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

HTML images with links mistranslated in mediawiki writer #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. pandoc -t mediawiki foo.html
2. where foo.html contains
<a href="images/dazzle.jpg"><img src="images/dazzle-small.jpg" alt="Daz
zle on Windows XP"
  style="margin: 10pt" width="500" height="361"></a>

What is the expected output? What do you see instead?
What I see:
[http://wxhaskell.sourceforge.net/images/dazzle.jpg [[Image:images/dazz
le-small.jpg|Dazzle on Windows XP]]] 

What I expect:
I'm not sure.  Probably straight HTML in this particular case? :-(

What version of the product are you using? On what operating system?
0.47

Please provide any additional information below.

Original issue reported on code.google.com by eric....@gmail.com on 5 Aug 2008 at 12:27

GoogleCodeExporter commented 8 years ago
Could you say more about why this is not the desired behavior?  Is this invalid
mediawiki?  If so, what's the correct mediawiki for an image inside a link?

Original comment by fiddloso...@gmail.com on 5 Aug 2008 at 11:03

GoogleCodeExporter commented 8 years ago
It does appear to be invalid mediawiki (in any case, it does not have the 
desired
effect.  Mediawiki ignores the first square bracket, displays the image 
(because the
URL is an image), and displays a red link for the second image path

I believe this is not a feature that mediawiki directly supports, so we may 
have to
go with straight HTML for images within links

 [oh and if I may throw in a bit of noise, pandoc's mediawiki support has allowed us
to move the wxhaskell documentation to haskell wiki, thanks!]

Original comment by eric....@gmail.com on 7 Aug 2008 at 7:14

GoogleCodeExporter commented 8 years ago
I can't find a good solution after a bit of fooling around on the wikimedia 
sandbox.
Leaving it as raw HTML doesn't work.  Neither does keeping the link syntax and
putting an <img> tag inside.  So, unless you can come up with output that works,
I'm inclined to leave it as it is and mark this "Won't Fix."

(PS. I'm glad the mediawiki stuff is being used!)

Original comment by fiddloso...@gmail.com on 10 Aug 2008 at 11:39

GoogleCodeExporter commented 8 years ago

Original comment by fiddloso...@gmail.com on 23 Aug 2008 at 5:49