summaryrefslogtreecommitdiff
path: root/doc
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
parent1255acc02c7e0273e988c1cbbd1c1accc134c2bc (diff)
parent02ee6d40d403eac396cead15900b1441e3fe08d7 (diff)
Merge commit 'upstream/master' into prv/po
Diffstat (limited to 'doc')
-rw-r--r--doc/ikiwiki/markdown.mdwn3
-rw-r--r--doc/plugins/format/discussion.mdwn5
-rw-r--r--doc/todo/syntax_highlighting.mdwn2
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/ikiwiki/markdown.mdwn b/doc/ikiwiki/markdown.mdwn
index a4190945f..3bebaef65 100644
--- a/doc/ikiwiki/markdown.mdwn
+++ b/doc/ikiwiki/markdown.mdwn
@@ -6,7 +6,8 @@ email messages. It is the markup language used by this wiki by default.
For documentation about the markdown syntax, see [[formatting]] and
[Markdown: syntax](http://daringfireball.net/projects/markdown/syntax). A
[markdown mode](http://jblevins.org/projects/markdown-mode/) for
-emacs can help in editing.
+emacs can help in editing, as can this
+[syntax file](http://plasticboy.com/markdown-vim-mode/) for vim.
Note that [[WikiLinks|WikiLink]] and [[directives|directive]] are not part
of the markdown syntax, and are the only bit of markup that this wiki
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