$text = $this->internalParse( $text );
- $dashReplace = array(
- '/ - /' => " – ", # N dash
- '/(?<=[0-9])-(?=[0-9])/' => "–", # N dash between numbers
- '/ -- /' => " — " # M dash
- );
- $text = preg_replace( array_keys($dashReplace), array_values($dashReplace), $text );
-
$text = $this->unstrip( $text, $this->mStripState );
$this->replaceLinkHolders( $text );
+ $dashReplace = array(
+ '/ - /' => " – ", # N dash
+ '/(?<=[0-9])-(?=[0-9])/' => "–", # N dash between numbers
+ '/ -- /' => " — " # M dash
+ );
+ $text = preg_replace( array_keys($dashReplace), array_values($dashReplace), $text );
+
# the position of the convert() call should not be changed. it
# assumes that the links are all replaces and the only thing left
# is the <nowiki> mark.