diff options
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/mdwn.mdwn | 3 | ||||
-rw-r--r-- | doc/plugins/write.mdwn | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/plugins/mdwn.mdwn b/doc/plugins/mdwn.mdwn new file mode 100644 index 000000000..d1b1254bf --- /dev/null +++ b/doc/plugins/mdwn.mdwn @@ -0,0 +1,3 @@ +This plugin, which is enabled by default, lets ikwiki convert files with +names ending in ".mwdn" to html. It uses the [[markdown]] minimal markup +language. diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 515c4d90d..5be90efdf 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -55,7 +55,8 @@ Note that if the [[htmlscrubber]] is enabled, html in [[PreProcessorDirective]] output is sanitised, which may limit what your plugin can do. Also, the rest of the page content is not in html format at preprocessor time. Text output by a preprocessor directive will be passed -through markdown along with the rest of the page. +through markdown (or whatever engine is used to htmlize the page) along +with the rest of the page. # Other types of hooks @@ -79,6 +80,15 @@ Runs on the raw source of a page, before anything else touches it, and can make arbitrary changes. The function is passed named parameters `page` and `content` and should return the filtered content. +## htmlize + + IkiWiki::hook(type => "htmlize", id => "ext", call => \&filter); + +Runs on the raw source of a page and turns it into html. The id parameter +specifies the filename extension that a file must have to be htmlized using +this plugin. This is how you can add support for new and exciting markup +languages to ikiwiki. + ## pagetemplate IkiWiki::hook(type => "pagetemplate", id => "foo", call => \&pagetemplate); |