[TxMt] Italics and Bold in Markdown.

Ciarán Walsh ciawal at gmail.com
Wed Mar 21 09:13:42 UTC 2007


According to the syntax guide at http://daringfireball.net/projects/ 
markdown/syntax#em:

Emphasis can be used in the middle of a word:
un*fucking*believable

Also, I pasted your “this is s_om_e markdown” example into a new  
document and did Preview and the “om” was indeed italicised.

Ciarán

On 21 Mar 2007, at 06:15, Luke Daley wrote:

> Hi,
>
> Textmate incorrectly labels italicised and bolded text.
>
> In the following markdown: "this is s_om_e markdown", 'om' will be  
> tagged as italicised. When converting to HTML, 'om' will not be  
> italicised. I am guessing that the Markdown processor requires that  
> italicised text be surrounded by white space. The same is also true  
> for bolded text.
>
> I was able to modify the language grammar to not incorrectly tag  
> the text. My solution is probably quite naive but it did work for  
> me. Can someone with more regex fu vet this and can we get it added  
> to the official bundle please (assuming it should be added and I am  
> not wrong on this).
>
> <Markdown.diff>
>
>
> Luke.
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list