diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-02-29 23:26:44 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-02-29 23:26:44 -0500 |
commit | b3a7bf61d5ad05cdc86950b6fcc564a5c7e5917d (patch) | |
tree | 52ee12ab9fb4020439ec32a686616702e5c9d9ea /doc | |
parent | b2b12275d6cf29bda2381fc3aea034ee8bd72a6b (diff) | |
download | ikiwiki-b3a7bf61d5ad05cdc86950b6fcc564a5c7e5917d.tar ikiwiki-b3a7bf61d5ad05cdc86950b6fcc564a5c7e5917d.tar.gz |
formatting
Diffstat (limited to 'doc')
-rw-r--r-- | doc/news/version_2.40.mdwn | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/news/version_2.40.mdwn b/doc/news/version_2.40.mdwn index 09acb369b..03dc983c2 100644 --- a/doc/news/version_2.40.mdwn +++ b/doc/news/version_2.40.mdwn @@ -2,21 +2,27 @@ News for ikiwiki 2.40: ikiwiki now has an new syntax for preprocessor directives, using the prefix '!': - * [[!directive ...]] + + \[[!directive ...]] + This new syntax no longer relies on spaces to distinguish between wikilinks and preprocessor directives. Thus, wikilinks can use spaces in their link text, and preprocessor directives without arguments (such as "toc") need not use a trailing space. + To enable the new syntax, set prefix\_directives to true in your ikiwiki config. For backward compatibility with existing wikis, prefix\_directives currently defaults to false. In ikiwiki 3.0, prefix\_directives will default to true, and wikis which have not yet converted to the new syntax will need to set prefix\_directives to false in their setup files. + To convert your wiki to the new syntax, ikiwiki provides a new script ikiwiki-transition. It will convert preprocessor directives in all files given on the command line. To convert an entire wiki: - find wikidir/ -type f -name '*.mdwn' -print0 | xargs -0 ikiwiki-transition prefix\_directives + + find wikidir/ -type f -name '*.mdwn' -print0 | xargs -0 ikiwiki-transition prefix\_directives + Even with prefix\_directives disabled, ikiwiki now allows an optional '!' prefix on preprocessor directives (but still requires a space). Thus, a directive which uses a '!' prefix and contains a space will work with @@ -74,4 +80,4 @@ ikiwiki 2.40 released with [[toggle text="these changes"]] * inline: When forcing urls absolute for rss feeds, skip mailto and other such urls. * ikiwiki-makerepo: Don't fail if the third argument ends in a slash. - * Allow colons in URLs after the first slash. (Adeodato Simó)"""]]
\ No newline at end of file + * Allow colons in URLs after the first slash. (Adeodato Simó)"""]] |