Link selection & constant removal fix

* Much better link parsing for markdown editor
* Don't try to find constants for non-classes