kzykhys / Ciconia

A New Markdown parser for PHP5.4
http://ciconia.kzykhys.com/
MIT License
355 stars 31 forks source link

Parsing bug #38

Open bbeaulant opened 10 years ago

bbeaulant commented 10 years ago

Hi, first, thank for this projet. I like its extensibility aspect !

Else, I've got some troubles in special case when trying to convert strings. In my mind, a text like

(*My italic text*)

Will be converted to

(<em>My italic text</em>)

But it doesn't. It seems that the problem come from de space character. Once this kind of sentence contains space, conversion is wrong.

Regards.

dereuromark commented 10 years ago

Actually, its not the spaces inside the italic text, but the missing space in front.

( *My italic text*)

works just fine. Once you have no space in front of the starting * it does not recognize it anymore. Maybe the regexp can be fixed?