]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/rst_tweak.mdwn
response
[ikiwiki.git] / doc / bugs / rst_tweak.mdwn
index 5a2caf2bf0d45c5bb195378b7fb6469189707b0d..9d433e24e1a41b82a60c4b3bdae709dca66f5b25 100644 (file)
@@ -24,3 +24,20 @@ Index: IkiWiki/Plugin/rst.pm
 ----
 
 Does the Perl version of this plugin still exist?  There appears to be no "rst.pm" in the current distribution; all there is is the python version. --Peter
+
+> No, only the python version exists. It does have `raw_enabled` set.
+> --[[Joey]]
+
+I am sorry, but I am confused. Does this mean that I can use Ikiwiki
+features that translate to HTML in rst files? For example, when I use a
+\[[pagename]]-style link in a rst file, the page generated by Ikiwiki's rst
+plugin says <a href="./../pagename/">pagename</a> as text. The link
+is expanded correctly, but the result isn't interpreted as HTML. Is that
+what is supposed to happen? --Peter
+
+> `raw_enabled` allows you to use the
+> [raw directive](http://docutils.sourceforge.net/docs/ref/rst/directives.html),
+> but this is not used by ikiwiki for wikilinks or anything else. 
+> That's why the [[plugin_page|plugins/rst]] has its note about 
+> issues with wikilinks and directives. You'd have to put those inside
+> raw directives yourself to avoid rst escaping their result. --[[Joey]]