[confused] Your post title (summary of post) doesn't match the post content. See the attached image for an answer to the question posed by the title.
How is that a bug? (and why are you posting to the forum?)
Unless I misunderstand it - you are saying that "
when I incorrectly use DokuWiki syntax, DokuWiki doesn't treat is as correct syntax". It seems a car analogy might be - "
when I put my foot on the accelerator the car doesn't stop" :)
The only reason I can think of for why you want this "bug" to be fixed (please remodel my car so the accelerator becomes the brake) is - so that
you don't have to fix your bad code.
You can fix your bad code with a simple, one-line command (find, xargs, sed, RegEx) that would only take a couple of minutes to correct hundreds of incorrectly formatted links.
If you really want to break DokuWiki link syntax, create a list of valid links separated by blank lines, using the following syntax for the last link:-
[[:wiki:welcome|[[this is wrong]]really]
[/color]
Please treat the following as an explanation, not a flame.
<code>
command [arg1 [arg2 [arg3]]]
</code>
falsis principiis proficisci? :)
The DokuWiki syntax (what you call a command)
only takes
one parameter.
That parameter is supposed to be text, while arguably "text"
could include DokuWiki syntax markers (
[]{} etc), supporting them might be counter to aims of DokuWiki (keep it simple), and definitely difficult to support without risking the breakage of plugins. i.e. matching square or curly brackets need to be supported so that plugins (e.g. the button plugin) will work, while still supporting matching brackets that don't enclose a plugin call (in the latter case, treat as text).
When the synopsis in the documentation for a command uses square brackets around parameters e.g.
ls --help | head -n1
Usage: ls [OPTION]... [FILE]...
[/color]
the
matching set of square brackets mean "
any or all arguments within [ ] are optional"