diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-11-08 12:35:28 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-11-08 12:35:28 -0500 |
commit | d552b2843020283b019729caf588f2e60b3a5396 (patch) | |
tree | 582e9a9ca85c2a4520d0ced5518e3ba648e10121 | |
parent | fb89bfd26bc248b8ce7c21446512b78b9ecb3391 (diff) | |
parent | e7d04199ec730deecc95b55679515bc5618526f8 (diff) |
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
-rw-r--r-- | doc/bugs/messed_up_repository.mdwn | 2 | ||||
-rw-r--r-- | doc/plugins/format/discussion.mdwn | 5 | ||||
-rw-r--r-- | doc/todo/syntax_highlighting.mdwn | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/doc/bugs/messed_up_repository.mdwn b/doc/bugs/messed_up_repository.mdwn index cb8aa875a..e245b84a8 100644 --- a/doc/bugs/messed_up_repository.mdwn +++ b/doc/bugs/messed_up_repository.mdwn @@ -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 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. diff --git a/doc/todo/syntax_highlighting.mdwn b/doc/todo/syntax_highlighting.mdwn index 97526bae6..2bdeb62be 100644 --- a/doc/todo/syntax_highlighting.mdwn +++ b/doc/todo/syntax_highlighting.mdwn @@ -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 |