The line (hr) does break lists. As it should.
Perhaps yes, but from user's perspective this is empty that breaks the list. "----" should break the list without empty line
It is possible, and valid to create a(n indented) hr within a li (but not between li's)
That's is not my intention. "nice to have" but not "basic". And irritating newline before "----" is something basic.
Anyway, this trivial patch had satisfied all my needs. Strangely after I have applied it the input "para1 ---- para2" should have resulted two paragraphs, but it does not (as I would expect, so I am happy).
--- a/inc/parser/parser.php
+++ b/inc/parser/parser.php
@@ -353,7 +353,7 @@ class Doku_Parser_Mode_eol extends Doku_Parser_Mode {
class Doku_Parser_Mode_hr extends Doku_Parser_Mode {
function connectTo($mode) {
- $this->Lexer->addSpecialPattern('\n[ \t]*-{4,}[ \t]*(?=\n)',$mode,'hr');
+ $this->Lexer->addSpecialPattern('[ \t]*-{4,4}[ \t]*(?=\n)',$mode,'hr');
}
function getSort() {