Add reference links support

This commit resolves #184
fix links error
Improve code syntax for links assignment
Merge remote-tracking branch 'upstream/master' into ref_links
Merge pull request #266 from shaform/ref_links

Add reference links support