erusev / parsedown-extra

Markdown Extra Extension for Parsedown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escape chars abbreviations

nwtn opened this issue · comments

Including certain chars, such as a /, in abbreviations will trigger an error in preg_replace(). E.g.:

FBI

OB/GYN

*[FBI]: Federal Bureau of Investigation
*[OB/GYN]: Obstetrics and gynaecology

…will break, with PHP Warning: preg_replace(): Unknown modifier 'G' in ….

screen shot 2015-02-23 at 12 18 57 pm