summaryrefslogtreecommitdiff
path: root/doc/plugins/format/discussion.mdwn
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-10 15:41:29 +0100
committerintrigeri <intrigeri@boum.org>2008-11-10 15:41:29 +0100
commit812f775e0a3cd953782edcbe8a0eb727752df03f (patch)
tree28daae6a750b1573bee9c0d8dfae06cd79c5c894 /doc/plugins/format/discussion.mdwn
parent1255acc02c7e0273e988c1cbbd1c1accc134c2bc (diff)
parent02ee6d40d403eac396cead15900b1441e3fe08d7 (diff)
Merge commit 'upstream/master' into prv/po
Diffstat (limited to 'doc/plugins/format/discussion.mdwn')
-rw-r--r--doc/plugins/format/discussion.mdwn5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/plugins/format/discussion.mdwn b/doc/plugins/format/discussion.mdwn
new file mode 100644
index 000000000..b7d6ca71c
--- /dev/null
+++ b/doc/plugins/format/discussion.mdwn
@@ -0,0 +1,5 @@
+Is there any way to tell if an htmlize hook have been called from a format directive?
+
+I am currently modifying the [[contrib/highlightcode]] plugin by [[sabr]] and I wanted to have a different behavior depending on the fact that the htmlize hook is called from a format directive or not. For instance, this could disable the raw copy of the highlighted code. Since I have enabled the keepextension option, I tried to rely on the page extension to decide whenever I have to create the raw file or not but this does not seems a reliable approach.
+
+One possible solution is to add an optional parameter to the htmlize hook (and thus to htmlize function in IkiWiki.pm) which could tell if this is the format directive that called the function but I am not sure that is a good way to do this.