diff --git a/core.php b/core.php index e851ce9..5a86725 100644 --- a/core.php +++ b/core.php @@ -256,7 +256,7 @@ class page_renderer if($isloggedin) { - $result .= "\t\t\tLogged in as " . render_username($user) . ". "; + $result .= "\t\t\tLogged in as " . self::render_username($user) . ". "; $result .= "Logout. | \n"; } else @@ -355,6 +355,11 @@ class Slimdown { '/\r\n/' => "\n", // new line normalisation '/(#+)(.*)/' => 'self::header', // headers '/(\*)(.*?)\1/' => '\2', // bold + + // todo test these + '/!\[(.*)\]\((.*)\)/' => '\1', // basic images + // todo end + '/(_)(.*?)\1/' => '\2', // emphasis '/\[\[([a-zA-Z0-9\_\- ]+)\|([a-zA-Z0-9\_\- ]+)\]\]/' => '\2', //internal links with display text '/\[\[([a-zA-Z0-9\_\- ]+)\]\]/' => '\1', //internal links diff --git a/index.php b/index.php index 06932a5..c82a22e 100644 --- a/index.php +++ b/index.php @@ -410,7 +410,7 @@ class page_renderer if($isloggedin) { - $result .= "\t\t\tLogged in as " . render_username($user) . ". "; + $result .= "\t\t\tLogged in as " . self::render_username($user) . ". "; $result .= "Logout. | \n"; } else @@ -509,6 +509,11 @@ class Slimdown { '/\r\n/' => "\n", // new line normalisation '/(#+)(.*)/' => 'self::header', // headers '/(\*)(.*?)\1/' => '\2', // bold + + // todo test these + '/!\[(.*)\]\((.*)\)/' => '\1', // basic images + // todo end + '/(_)(.*?)\1/' => '\2', // emphasis '/\[\[([a-zA-Z0-9\_\- ]+)\|([a-zA-Z0-9\_\- ]+)\]\]/' => '\2', //internal links with display text '/\[\[([a-zA-Z0-9\_\- ]+)\]\]/' => '\1', //internal links