2018-04-17, 12:46 PM
It seems that the parser is outputting an extra </li> before the first element of a list.
Here's a suggested patch to fix the issue - I haven't filed it as a PR because I understand that protocol is to report bugs here first.
In inc/class_parser.php, in function mycode_parse_list(), replace:
with:
Here's a suggested patch to fix the issue - I haven't filed it as a PR because I understand that protocol is to report bugs here first.
In inc/class_parser.php, in function mycode_parse_list(), replace:
$message = preg_replace("#[^\S\n\r]*\[\*\]\s*#", "</li>\n<li>", $message);
$message .= "</li>";
with:
$a = preg_split("#[^\S\n\r]*\[\*\]\s*#", $message);
if(isset($a[0]) && trim($a[0]) == '')
{
array_shift($a);
}
$message = '<li>'.implode("</li>\n<li>", $a)."</li>\n";