Applied petschki's patch which fixes javascript error on enabled 'mark special links' option, fixes #12440
Merge pull request #55 from saily/master

Apply patch from @petschki's which fixes #12440