[Pmwiki-users] Minor change suggestion: backtick
Patrick R. Michaud
pmichaud at sci.tamucc.edu
Wed Apr 23 16:59:13 CDT 2003
On 24 Apr 2003, John Rankin wrote:
> Why not let an author use a backtick as an escape character, so one could write:
> [[#Named`Reference]]
> &A`Elig;
> CE`Os
...
> It's also a one line change to look for `[A-Z] and remove the `. The only
> side effect I can think of is what would happen to ThisPage:#TopOfPage for example.
My biggest concern would be with people cutting/pasting text containing
typographic quotes. I.e., some packages and programs would quote
things as ``Hello World'' and this change would cause that to break.
It might be workable as a local customization by adding
the line:
$InlineReplacements =
array_merge(array("/`([A-Z])/" => "\$1"),$InlineReplacements);
in local.php, to have the backtick replacement take place
before all of the other inline replacements. I haven't tried
it yet--this is just a suggestion. If you try this,
let me know how it works out.
I'll need to think on it a bit more about possible side effects
and markup complications before I can officially add it to PmWiki.
Pm
More information about the pmwiki-users
mailing list