diff --git a/core.php b/core.php index 1c64af4..37ad64a 100644 --- a/core.php +++ b/core.php @@ -355,6 +355,7 @@ class Slimdown { '/\r\n/' => "\n", // new line normalisation '/(#+)(.*)/' => 'self::header', // headers '/(\*)(.*?)\1/' => '\2', // bold + '/(_)(.*?)\1/' => '\2', // emphasis // todo test these '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '\1', // images with size @@ -362,7 +363,6 @@ class Slimdown { '/!\[(.*)\]\((.*)\)/' => '\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 '/\[([^\[]+)\]\(([^\)]+)\)/' => '\1', // links