diff options
author | Joey Hess <joey@kitenet.net> | 2008-05-23 07:34:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-05-23 07:34:41 -0400 |
commit | 88096ea9ab9baf34a6b4d014bac99f27bd9a7fe8 (patch) | |
tree | 5138e94c6c36849c4881cc35ef963ae7e655fa18 /doc/bugs | |
parent | e67516c107111c7bd5e056f9b4e7d6efe1e7f13c (diff) |
web commit by http://kaizer.se/wiki/contact/: bugs on including html (as raw as possible)
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/raw_html_in-page_and___91____91____33__included__93____93__.mdwn | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/doc/bugs/raw_html_in-page_and___91____91____33__included__93____93__.mdwn b/doc/bugs/raw_html_in-page_and___91____91____33__included__93____93__.mdwn new file mode 100644 index 000000000..9a26daf24 --- /dev/null +++ b/doc/bugs/raw_html_in-page_and___91____91____33__included__93____93__.mdwn @@ -0,0 +1,95 @@ +I'm trying to add a flickr stream thing to my (static) ikiwiki. I've disabled htmlscrubber and enabled rawhtml, and I get many strange errors. + +[[!toc ]] + +## putting the html right into the markdown index.mdwn + +This should work, but html code (listing 1) shows up with a hash replaced for the actual content (listing 2) + +I have to suspect that replacing html with some hash is a bug. + +## inlining raw html + +This would be my prefered solution. in index.mdwn: + + \[[!inline pages="flickr.html" rss="no"]] + +but this refuses to show any content. Trying to RTFM and adding raw="yes" results in this error: + + uppdaterar wiki.. + söker av index.mdwn + ritar upp index.mdwn + private//ikiwiki.setup: Can't call method "param" on an undefined value at /usr/share/perl5/IkiWiki/Plugin/inline.pm line 253. + BEGIN failed--compilation aborted at (eval 10) line 63. + + +## current workaround: iframe + +I'm no html guru so I put the stuff in an iframe, but that doesn't work, since the links are script-generated and need a target="" attribute in them to load in the right place (replacing ikiwiki page). + +Ikiwiki version: 2.44 + +plugin configuration: + disable_plugins => [qw{htmlscrubber}], + add_plugins => [qw{img map rawhtml toggle template prettydate haiku meta}], + +best regards +ulrik + + +## listing 1 + <!-- Start of Flickr Badge --> + <style type="text/css"> + #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;} + #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;} + #flickr_icon_td {padding:0 5px 0 0 !important;} + .flickr_badge_image {text-align:center !important;} + .flickr_badge_image img {border: 1px solid black !important;} + #flickr_www {display:none; text-align:left; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;} + #flickr_badge_uber_wrapper a:hover, + #flickr_badge_uber_wrapper a:link, + #flickr_badge_uber_wrapper a:active, + #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#6600CC;} + #flickr_badge_wrapper {} + #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;} + </style> + <table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0"> + <tr> + <td><a href="http://www.flickr.com" id="flickr_www">www.<strong style="color:#3993ff">flick<span style="color:#ff1c92">r</span></strong>.com</a><table cellpadding="0" cellspacing="2" border="0" id="flickr_badge_wrapper"> + <tr> + <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?show_name=1&count=5&display=latest&size=s&layout=h&source=user&user=23579158%40N05"></script> + <td id="flickr_badge_source" valign="center" align="center"> + <table cellpadding="0" cellspacing="0" border="0"><tr> + <td width="10" id="flickr_icon_td"><a href="http://www.flickr.com/photos/23579158@N05/"><img id="flickr_badge_icon" alt="englabenny's items" src="http://farm3.static.flickr.com/2338/buddyicons/23579158@N05.jpg?1211285412#23579158@N05" align="left" width="48" height="48"></a></td> + <td id="flickr_badge_source_txt"><nobr>Go to</nobr> <a href="http://www.flickr.com/photos/23579158@N05/">englabenny's photostream</a></td> + </tr></table> + </td> + </tr> + </table> + </td></tr></table> + <!-- End of Flickr Badge --> + + +## listing 2 + <!-- Start of Flickr Badge --> + <style type="text/css"> + #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;} + #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;} + #flickr_icon_td {padding:0 5px 0 0 !important;} + .flickr_badge_image {text-align:center !important;} + .flickr_badge_image img {border: 1px solid black !important;} + #flickr_www {display:none; text-align:left; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;} + #flickr_badge_uber_wrapper a:hover, + #flickr_badge_uber_wrapper a:link, + #flickr_badge_uber_wrapper a:active, + #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#6600CC;} + #flickr_badge_wrapper {} + #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;} + </style> + + + 7383eb73071488c9ef46d617acf3e402 + + + </td></tr></table> + <!-- End of Flickr Badge --> |