[pmwiki-users] em dash
Vince Sabio
vince at vjs.org
Mon Sep 1 21:56:44 CDT 2008
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 vince at vjs.org
More information about the pmwiki-users
mailing list