I like the idea. However, a question does not make a spec. ;-)

My proposal here would be to ignore all other backslashes, and if you actually want a backslash right before a real link, you HTML-escape that using \ "\" - this should be so rare that this extra bit of work would be an appropriate Huffman coding level for it ;-)

The other question is who would use this? We have to understand that we're not making newbie errors less likely here. We're just simplifying the life of those who are experienced and newbies who actually read the documentation ;-) I'm ok with that, but only as long as everyone understands the scope of the change and doesn't expect anything more.

After that, though, there is another whole level of work to getting this into the PM code, methinks. I have already found a couple places that would need changing. I imagine there's a half-dozen or so places to do this. So it's just a matter of finding them all, and either changing them all, or changing them all to call a common routine. But figuring out what precisely is desired/desirable is always the first step.


In reply to Re^2: How to escape square bracket in PM? by Tanktalus
in thread How to escape square bracket in PM? by johnnywang

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.