]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/raw_html_in-page_and___91____91____33__included__93____93__.mdwn
response
[ikiwiki.git] / doc / bugs / raw_html_in-page_and___91____91____33__included__93____93__.mdwn
1 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.
2
3 [[!toc ]]
4
5 ## putting the html right into the markdown index.mdwn
6
7 This should work, but html code (listing 1) shows up with a hash replaced for the actual content (listing 2)
8
9 I have to suspect that replacing html with some hash is a bug.
10
11 > Congrats, you're another person to fall afoul of markdown [[!debbug 380212]].
12 > The fix is to use Text::Markdown, or markdown 1.0.2 instead of buggy
13 > old markdown 1.0.1. --[[Joey]] [[!tag done]]
14
15 ## inlining raw html
16
17 This would be my prefered solution. in index.mdwn:
18
19         \[[!inline pages="flickr.html" rss="no"]]
20
21 but this refuses to show any content. Trying to RTFM and adding raw="yes" results in this error:
22
23         uppdaterar wiki..
24         söker av index.mdwn
25         ritar upp index.mdwn
26         private//ikiwiki.setup: Can't call method "param" on an undefined value at /usr/share/perl5/IkiWiki/Plugin/inline.pm line 253.
27         BEGIN failed--compilation aborted at (eval 10) line 63.
28
29
30 ## current workaround: iframe
31
32 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).
33
34 Ikiwiki version: 2.44
35
36 plugin configuration:
37
38         disable_plugins => [qw{htmlscrubber}],
39         add_plugins => [qw{img map rawhtml toggle template prettydate haiku meta}],
40
41 best regards  
42 ulrik
43
44
45 ## listing 1
46         <!-- Start of Flickr Badge -->
47         <style type="text/css">
48         #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;}
49         #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
50         #flickr_icon_td {padding:0 5px 0 0 !important;}
51         .flickr_badge_image {text-align:center !important;}
52         .flickr_badge_image img {border: 1px solid black !important;}
53         #flickr_www {display:none; text-align:left; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;}
54         #flickr_badge_uber_wrapper a:hover,
55         #flickr_badge_uber_wrapper a:link,
56         #flickr_badge_uber_wrapper a:active,
57         #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#6600CC;}
58         #flickr_badge_wrapper {}
59         #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;}
60         </style>
61         <table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0">
62         <tr>
63         <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">
64         <tr>
65         <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>
66         <td id="flickr_badge_source" valign="center" align="center">
67         <table cellpadding="0" cellspacing="0" border="0"><tr>
68         <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>
69         <td id="flickr_badge_source_txt"><nobr>Go to</nobr> <a href="http://www.flickr.com/photos/23579158@N05/">englabenny's photostream</a></td>
70         </tr></table>
71         </td>
72         </tr>
73         </table>
74         </td></tr></table>
75         <!-- End of Flickr Badge -->
76
77
78 ## listing 2
79         <!-- Start of Flickr Badge -->
80         <style type="text/css">
81         #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;}
82         #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
83         #flickr_icon_td {padding:0 5px 0 0 !important;}
84         .flickr_badge_image {text-align:center !important;}
85         .flickr_badge_image img {border: 1px solid black !important;}
86         #flickr_www {display:none; text-align:left; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;}
87         #flickr_badge_uber_wrapper a:hover,
88         #flickr_badge_uber_wrapper a:link,
89         #flickr_badge_uber_wrapper a:active,
90         #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#6600CC;}
91         #flickr_badge_wrapper {}
92         #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;}
93         </style>
94
95
96         7383eb73071488c9ef46d617acf3e402
97
98
99         </td></tr></table>
100         <!-- End of Flickr Badge -->