I need to add em-dash/en-dash capability on the wiki. Per the 
Cookbook instructions, I added the following to config.php:

if ($action != 'edit') {
  # make curly quotes
  Markup("\"",'_end',"/\"(.*?)\"/",'“$1”');
  # make m-dash
  Markup("---",'_end',"/---([^-])/",'—$1');
  # make n-dash
  Markup("--",'_end',"/--([^->])/",'–$1');
  # curly single quote in contraction
  
Markup("a'a",'_end',"/([A-Za-z])'([A-Za-z][A-Za-z]?[^A-Za-z])/",'$1’$2');
}

However, using "---" does not yield an em dash. Any idea what I'm doing wrong?

Muchas gracias....

__________________________________________________________________________
Vince Sabio                                                  [EMAIL PROTECTED]

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to