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
Seen from MoinMoin release 1.1 CVS HEAD Q1 2003
- Fixed in 1.2
- Seen again on 1.3 development
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
- Priority: Medium - very bad for RTL wikis, but there is a workaround
- Assigned to:
- Status: fixed in moin--main--1.3--patch-72 (Fabi)