kzykhys / Ciconia

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

Error on italics parsing #19

Closed joelcuevas closed 10 years ago

joelcuevas commented 10 years ago

This:

$ciconia->render('`user_id` `user_id`');

Renders this:

<p><code>user<em>id</code> <code>user</em>id</code></p> 

Note the <em> opening before id even when there is no _ closing char before the code tag.

And bold, of course, behaves the same:

$ciconia->render('`user__id` `user__id`');

Anyways, should italics and bold be parsed inside code markup?

kzykhys commented 10 years ago

Thank you for reporting. I think italics and bold should not be parsed inside

`__test__` `_test_test_`

shold be

__test__ _test_test_

kzykhys commented 10 years ago

Thank you for reporting this issue!