[dokuwiki] Syntax change?

Hi!

I was working on the CREOLE Syntax plugin today (nothing to see yet)
and came across a certain specification in the new 1.0 Spec. I
wondered if it would make sense as default for DokuWiki's syntax as
well.

CREOLE 1.0 specifies that formatting syntax like strong, emphasis or
underline should not cross paragraphs. Meaning a paragraph break (not
forced linebreaks) will automatically close any formatting mode.

This is currently not explicitly the case in Dokuwiki's syntax.
Consider the following:

-------
**This is the first paragraph.

And this is the second.**
-------

This will not render as two bold paragraphs, but as two bold sentences
in a single paragraph.

Using the CREOLE aproach, the bold mode would be exited at the pragraph
breaks. Resulting in one bold paragraph and one normal paragraph
(possibly with an empty <b></b> at the end).

The advantage I see in this behavior is that it would be a cure against
runaway markup. When you forget to close a formatting syntax it would
no longer destroy the whole page but would just format the affected
paragraph.

Any objections?

Andi


[1] http://wiki.splitbrain.org/plugin:creole

-- 
http://www.splitbrain.org

Other related posts: