Description
parser thinks two colons in a code block signify a definition list. Also the wiki engine may crash at some point, when an unordered list point follows this misinterpreted dl
Steps to reproduce
Have this code:
- * not intending a {{{class
- hello}}} definition list here
First, but minor severe it renders wrong, see also
More importantly, do the following to make your engine crash:
- edit in text mode
- switch to GUI mode
switch back to edit mode -> internal server error 500, error raised in MoinMoin/converter/text_html_text_moin_wiki.py line 642 (1.9.4)
According to HTML standard, there must not be an ul in a dl (http://de.selfhtml.org/html/referenz/elemente.htm#dl). However, letting the engine crash with is a bit harsh (one might loose data).
Example
Component selection
- general
Details
MoinMoin Version |
1.8.4 , 1.9.4 |
OS and Version |
Linux |
Python Version |
2.5 , 2.6 |
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
doesn't seem to be one
Even the "backtick" syntax doesn't help in this case:
* not intending a `class :: hello` definition list here * this point kills the parser
Test:
- * not intending a `class
- hello` definition list here
I imagine that the problem is the "pattern hierarchy": quoted regions should conceal things like :: from patterns that cause definition lists to be produced, but maybe this isn't present in the part of the grammar dealing with lists, where once a line starting with a space and containing :: is seen, the parser just takes everything between as a definition title item without detecting whether the :: is quoted in some way. -- PaulBoddie 2013-03-01 13:07:31
Discussion
Plan
- Priority:
- Assigned to:
- Status: please re-evaluate this bug. Steps to produce in 1.9 given above.