Description

Block elements that starts just after wiki markup like = title = or ---- - without an empty line, are not enclosed in <p></p>

This problem cause the text to not use the css style defined for paragraph, since it inherit its style from the body of the document. Worse, If you use language macros like [[he]], these texts will NOT get their lang and dir attributes, and will NOT will be displayed in the correct direction.

Example

Wiki markup like this:

----
text...

= Title =
text...

----
[[he]]
text...

Creates HTML like this:

<hr>
text...

<h1>Title</h1>;
text...

<hr>
text...

Instead of this HTML:

<hr>
<p>text...

<h1>Title</h1>
<p>text...

<hr>
<p lang="he" dir="rtl">text...

Test Markup

Here is test markup, look at the source to see if its working properly:


text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

Title

text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text


he text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text en

Details

Failed unit tests

parser.wiki: first paragraph should be in <p> ... FAIL
parser.wiki: create paragraph after heading ... FAIL

Discussion

Workaround

Always put an empty line after any markup and before any paragraph

----

text...

= Title =

text...

----

[[he]]

text...

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/MissingPTagAfterMarkup (last edited 2007-10-29 19:08:59 by localhost)