]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/rst_tweak.mdwn
web commit by tschwinge: ``clear: both'' for `.page*'?
[ikiwiki.git] / doc / bugs / rst_tweak.mdwn
1 rst.pm disallows raw HTML input. (It's meant as a security feature.)
2 IkiWiki generates HTML in rst files pretty much all the time. As
3 such, we should enable raw HTML support. --Ethan
4
5 > [[done]], although I did add a news item about it, since it could break
6 > the security of certian setups that don't use the htmlscrubber. --[[Joey]]
7
8 <pre>
9 Index: IkiWiki/Plugin/rst.pm
10 ===================================================================
11 --- IkiWiki/Plugin/rst.pm       (revision 3926)
12 +++ IkiWiki/Plugin/rst.pm       (working copy)
13 @@ -30,7 +30,7 @@
14  html = publish_string(stdin.read(), writer_name='html', 
15         settings_overrides = { 'halt_level': 6, 
16                                'file_insertion_enabled': 0,
17 -                              'raw_enabled': 0 }
18 +                              'raw_enabled': 1 }
19  );
20  print html[html.find('<body>')+6:html.find('</body>')].strip();
21  ";
22 </pre>