With the new markup rule, it will only trigger if there are exactly
four ---- dashes on a line by itself, nothing before or after. It may
disrupt some sites, but it would at least avoid this problem you
mention.

Cheers,
Dan

P.S. By the way, since <hr> is recognized even without your markup
rule (it outputs <hr>, not <hr />) you could just disable the four
dash markup by doing

MarkUp('style', 'hr', '');

And get something comparable to what you have now.


On Sun, Nov 1, 2009 at 5:31 PM, Kevin <[email protected]> wrote:
> I have long abandoned the use ---- as a <hr> indicator as I run into way too
> much text that has ------'s in them.  Very common in source code and Unix
> output.
>
> I changed it to <hr> instead.
>
> MarkUp('style', 'hr', '/\n?(&lt;|<)hr(&gt;|>)\n?/', '<hr />'); // hr
> horizontal line
>
> On Sun, Nov 1, 2009 at 1:56 PM, The Editor <[email protected]> wrote:
>>
>> Actually, this is even better:
>>
>> MarkUp('style', 'hr', '/^\-\-\-\-$/m', '<hr />'); // ---- horizontal line
>>
>> Of course it limits the dashes to four on a line by itself, but I
>> think that is reasonable...
>>
>> Yes, much better and simpler...
>>
>> Cheers,
>> Dan
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to