]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/rst_tweak.mdwn
f6f7bbaf05a60afd96468a3320c90983e1fbe42f
[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 <pre>
6 Index: IkiWiki/Plugin/rst.pm
7 ===================================================================
8 --- IkiWiki/Plugin/rst.pm       (revision 3926)
9 +++ IkiWiki/Plugin/rst.pm       (working copy)
10 @@ -30,7 +30,7 @@
11  html = publish_string(stdin.read(), writer_name='html', 
12         settings_overrides = { 'halt_level': 6, 
13                                'file_insertion_enabled': 0,
14 -                              'raw_enabled': 0 }
15 +                              'raw_enabled': 1 }
16  );
17  print html[html.find('<body>')+6:html.find('</body>')].strip();
18  ";
19 </pre>