diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-06-15 11:25:54 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-06-15 11:25:54 +0200 |
commit | 7a84ce540d126d3a135d63cc3f2a4367da789d7a (patch) | |
tree | fab584dba2a8b01ae8fe81d865632d82bc63de2b /ikiwiki/directive.mdwn | |
parent | 24d0f83d5af8385ad674616632b1b6330be8fa14 (diff) | |
parent | b04cb8c6cb13f212c21cbc4abcc1ef1120f4edb8 (diff) |
Merge branch 'ikiwiki'
Diffstat (limited to 'ikiwiki/directive.mdwn')
-rw-r--r-- | ikiwiki/directive.mdwn | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ikiwiki/directive.mdwn b/ikiwiki/directive.mdwn index fb88aa7..1dc1e51 100644 --- a/ikiwiki/directive.mdwn +++ b/ikiwiki/directive.mdwn @@ -20,13 +20,26 @@ wrapped to multiple lines if you like: Also, multiple lines of *quoted* text can be used for a value. To allow quote marks inside the quoted text, delimit the block -of text with triple-quotes: +of text with triple-double-quotes or triple-single-quotes: \[[!directive text=""" 1. "foo" 2. "bar" 3. "baz" - """]] + """ othertext=''' + 1. 'quux' + 2. "foo" + ''']] + +If you want to put text with triple quotes into a parameter value, you can +use perl-style here-doc syntax, even nesting it like this: + + \[[!directive text=<<OUTER + [[!otherdirective <<INNER + inner text + INNER]] + outer text + OUTER]] ikiwiki also has an older syntax for directives, which requires a space in directives to distinguish them from [[wikilinks|ikiwiki/wikilink]]. This |