improved the help page + added markdown style html formatting processor)
This commit is contained in:
+5
-1
@@ -43,8 +43,12 @@ if (file_exists($_pf)) {
|
||||
|
||||
// special symbols
|
||||
$str = str_replace('\,', ' ', $str);
|
||||
$str = preg_replace('/(?<=\w)~(?=\w)/', ' ', $str);
|
||||
$str = preg_replace('/(?<=[^ ])~(?=[^ ])/', ' ', $str);
|
||||
$str = preg_replace('/(?<!\w)`([^ `][^`]*?[^ `]|[^ `])`(?!\w)/', '<code>$1</code>', $str);
|
||||
$str = preg_replace('/(?<!\w)_([^ _][^_]*?[^ _]|[^ _])_(?!\w)/', '<i>$1</i>', $str);
|
||||
$str = preg_replace('/(?<!\w)\*([^ *][^*]*?[^ *]|[^ *])\*(?!\w)/', '<b>$1</b>', $str);
|
||||
|
||||
$str = preg_replace("/\s*(\\\\\\\\)[\n \t]+/", '<br>', $str);
|
||||
include_str($str);
|
||||
} else {
|
||||
echo "404";
|
||||
|
||||
Reference in New Issue
Block a user