Open GoogleCodeExporter opened 8 years ago
Wikipedia inserts images as links:
[[Image:image name.png]]
The double brackets are "SmartLinks" and, one can alter what happens when these
occur
by extending the HtmlVisitor class.
Currently, it appends the following:
start: <a href="[resolved link]">
end: </a>
You could overwrite this when an image link is detected:
start: <img src="[image link]" />
end:
(nothing for the end tag). Note that content still may appear after the image
if the
SmartLink had a caption. This is something I'm interested in changing too, as
customizing the parser is of course what we're most interested in.
Original comment by bodhi.r...@gmail.com
on 11 Dec 2008 at 10:03
Original issue reported on code.google.com by
sodamn...@gmail.com
on 18 Mar 2008 at 7:47