From 874c3e0deabab154548a3e91e271e86e94ba8502 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 24 Jan 2009 19:58:06 +0000 Subject: Added a plugin system, based on hint. + In Text.Pandoc.Definition, added processIn, processInM, and queryIn, and deprecated processPandoc and queryPandoc for these more general functions, which are useful in writing plugins. + Added module Text.Pandoc.Plugins. + Added a --plugins option to Main, and code to run the parsed pandoc document through all the plugins. + Provided five sample plugin files in the plugins/ directory. + Documented --plugin in the pandoc man page and README. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1519 788f1e2b-df1e-0410-8736-df70ead52e1b --- man/man1/pandoc.1.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'man/man1/pandoc.1.md') diff --git a/man/man1/pandoc.1.md b/man/man1/pandoc.1.md index 91c3a8537..a418e608b 100644 --- a/man/man1/pandoc.1.md +++ b/man/man1/pandoc.1.md @@ -173,6 +173,14 @@ to Pandoc. Or use `html2markdown`(1), a wrapper around `pandoc`. `context`, `docbook`, `man`, `markdown`, `opendocument`, `rst`, `rtf`). +-P *MODULE[,MODULE...]*, \--plugins=*MODULE[,MODULE...]* +: Specify plugins to load, by module name or source file pathname. + Plugins should export a function `transform` of type `a -> a` + or `a -> IO a`, where `a` is `Inline`, `Block`, `Pandoc`, + `[Inline]`, or `[Block]`. This function will be used to transform + the pandoc document after it is parsed by the reader and before it + is written out by the writer. + -T *STRING*, \--title-prefix=*STRING* : Specify *STRING* as a prefix to the HTML window title. -- cgit v1.2.3