Interesting Issue

Chris Purcell cjp39 at cam.ac.uk
Thu Dec 9 05:23:35 EST 2004


> Some people have suggested that Markdown should only allow emphasis
> to start and end at the beginning of "words", so that you can use
> underscores mid-word without triggering <em> tags.

That would break, for instance, emboldened quotes, no? *"This is a bold 
bit of quoting."*

Perhaps the rule should be "not allow emphasis to start or end in the 
middle of words", instead?

i.e. /(\b_|_\b)(.*)(\b_|_\b)/   # works since an underscore character 
counts as a word

or /(\B\*|*\B)(.*)(\B\*|\*\B)/  # works since an asterisk does not 
count as a word

> But I think
> that's too strict, because sometimes you want to emphasis only part
> of a word:
>
>     un*fucking*believable

That should, strictly speaking, be hyphenated 
(un-*fucking*-believable), which shrinks the exception category some 
more... :)

Cheers,
Chris



More information about the Markdown-discuss mailing list