]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 8 Nov 2008 17:35:28 +0000 (12:35 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 8 Nov 2008 17:35:28 +0000 (12:35 -0500)
doc/bugs/messed_up_repository.mdwn
doc/plugins/format/discussion.mdwn [new file with mode: 0644]
doc/todo/syntax_highlighting.mdwn

index cb8aa875af7c4df4579b1efda7c81ebd27f926fc..e245b84a885b123aff993ccec3382f647df043c7 100644 (file)
@@ -16,4 +16,6 @@ How can I create a new version of this clone?
 > can just make a new clone and move .ikiwiki into it before running
 > ikiwiki. --[[Joey]]
 
+> > Great, that worked. Thanks Joey!
+
 [[!tag done]]
diff --git a/doc/plugins/format/discussion.mdwn b/doc/plugins/format/discussion.mdwn
new file mode 100644 (file)
index 0000000..b7d6ca7
--- /dev/null
@@ -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.
index 97526bae6fa83300d461cea5648ee3ab99cfb27d..2bdeb62be5dc8db7af7435d1379d5ad4728fd5bd 100644 (file)
@@ -23,7 +23,7 @@ pages, as well as doing syntax highlighting as a preprocessor directive
 * [[sourcecode|todo/automatic_use_of_syntax_plugin_on_source_code_files/discussion]]
   also uses src-highlight, and operates on whole source files.
   Updated to work with the fix for [[bugs/multiple_pages_with_same_name]].  Untested with files with no extension, e.g. `Makefile`.
-* [[user/jrblevin]]'s code plugin uses src-highlight, and supports both
+* [[users/jasonblevins]]'s code plugin uses src-highlight, and supports both
   while file and directive use.
 
 ## General problems