winterthediplomat/md2bbc

md into BBCode [code] is converted

Opened this issue · 1 comments

[code=md]
![](http://google.com/save_it_bro.pl)
<http://google.com/save_it_bro.pl>
[/code]

\```md
![](http://google.com/save_it_bro.pl)
<http://google.com/save_it_bro.pl>
\```

is parsed to

[code=md]
[img]http://google.com/save_it_bro.pl[/img]
[url]http://google.com/save_it_bro.pl[/url]
[/code]
[code=md]
![](http://google.com/save_it_bro.pl)
<http://google.com/save_it_bro.pl>
[/code]

Probably, other "special" tags (e.g. [url]) are not recognized.
We don't have any test regarding these bbc/md mixes

Another case of misconversion can be found in the comments of this Nerdz thread: inside [img] tags, the _ are converted to [cur]
An example:
[img]http://google.com/save_it_faggot.pl[/img] -> [img]http://google.com/save[cur]it[/cur]faggot.pl[/img]