aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhttp://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web>2009-11-28 21:36:01 -0500
committerJoey Hess <joey@kitenet.net>2009-11-28 21:36:01 -0500
commite0d4b55bc885550a0e5a4fd49e2389eaeb5ec384 (patch)
treea1bc646117026679dd477ff4c02fa8a1edcd29e0 /doc
parent356bf3fed7700558e2e8dff26d3176aaf25f1b1e (diff)
downloadikiwiki-e0d4b55bc885550a0e5a4fd49e2389eaeb5ec384.tar
ikiwiki-e0d4b55bc885550a0e5a4fd49e2389eaeb5ec384.tar.gz
this would be a nifty feature
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/enable_arbitrary_markup_for_directives.mdwn17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/todo/enable_arbitrary_markup_for_directives.mdwn b/doc/todo/enable_arbitrary_markup_for_directives.mdwn
new file mode 100644
index 000000000..7aa0b6d06
--- /dev/null
+++ b/doc/todo/enable_arbitrary_markup_for_directives.mdwn
@@ -0,0 +1,17 @@
+One of the good things about [PmWiki](http://www.pmwiki.org) is the ability to treat arbitrary markup as directives.
+In ikiwiki, all directives have the same format:
+
+\[[!name arguments]]
+
+But with PmWiki, directives can be added to the engine (with the "Markup" hook) with the usual name and function passing, but also with a regexp which has capturing parentheses, and the results of the match are passed to the given function.
+Would it be possible to alter the "preprocess" hook to have an optional regex argument which acted in a similar fashion?
+
+For example, one could then write a plugin which would treat
+
+Category: Foo, Bar
+
+as a tag, by using a regex such as /^Category:\s*([\w\s,]+)$/; the result "Foo, Bar" could then be further processed by the hook function.
+
+This could also make it easier to support more styles of markup, rather than having to do all the processing in "htmlize" and/or "filter".
+
+-- [[KathrynAndersen]]